Lines Matching refs:pos_read
35 return (this->pos_read == this->pos_write) && !this->full;
45 this->pos_read = this->pos_write = this->full = 0;
67 (this->pos_read - this->pos_write + this->size - 1) % this->size +
76 (this->pos_write - this->pos_read + this->size - 1) % this->size +
116 if (this->pos_write == this->pos_read)
145 length1 = this->size - this->pos_read;
147 command = this->buf[this->pos_read];
157 this->buf[this->pos_read] = fixed;
185 if (this->buf[this->pos_read + i] & 0x80)
194 if (this->buf[this->pos_read + i] & 0x80)
224 memcpy(data + repeat, this->buf + this->pos_read, length);
225 this->pos_read += length;
229 memcpy(data + repeat, this->buf + this->pos_read, length1);
231 this->pos_read = length2;
248 this->pos_read = (this->pos_read + length) % this->size;