Method and device for reading data

A technology for reading data and data packets, which is applied in the computer field, can solve the problems of data overflow and low data reading efficiency, reduce the number of times to read data, reduce the probability of data overflow, and reduce the number of times to read data Effect
CN102402486BActive Publication Date: 2014-07-23TENCENT TECH (SHENZHEN) CO LTD +1

Patent Information

Authority / Receiving Office
CN ยท China
Patent Type
Patents(China)
Current Assignee / Owner
TENCENT TECH (SHENZHEN) CO LTD
Publication Date
2014-07-23

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a method and a device for reading data, which belong to the technical field of computers. The method comprises the following steps: determining a head-pointer position and a tail-pointer position of a channel; comparing the height of the head-pointer position and the height of the tail-pointer position; and sequentially reading a data packet according to a comparison result. The device comprises a determining module, a comparing module and a reading module. According to the invention, through sequentially reading the data packet, the times for reading the data can be reduced; and in addition, since the times for reading the data is reduced, the efficiency for reading the data can be improved, and thus the probability that data overflow from the channel is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of computer technology, in particular to a method and device for reading data. Background technique

[0002] With the increasing amount of information, data storage and reading has become a common technical means for processing information. Each data unit in a channel (channel) storing data may be of fixed length, or may be of variable length in order to save space, that is, the length of each data unit is different.

[0003] Regardless of whether the data unit in the channel is fixed-length or variable-length, when the existing technology reads data, it will read a data packet from the position of the head pointer in the channel, then decode the original data packet, and modify the head pointer , that is, read a data packet of a data unit each time and process it; when the amount of data is large, it is necessary to continuously scan the position of the head pointer in the channel until the position of the head poin...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More