Lines Matching refs:_pos
17 if (_pos >= Buf.Size()) in Read()
19 size_t rem = Buf.Size() - (size_t)_pos; in Read()
22 memcpy(data, (const Byte *)Buf + (size_t)_pos, rem); in Read()
23 _pos += rem; in Read()
34 case STREAM_SEEK_CUR: offset += _pos; break; in Seek()
40 _pos = offset; in Seek()
52 if (_pos >= _size) in Read()
54 size_t rem = _size - (size_t)_pos; in Read()
57 memcpy(data, _data + (size_t)_pos, rem); in Read()
58 _pos += rem; in Read()
69 case STREAM_SEEK_CUR: offset += _pos; break; in Seek()
75 _pos = offset; in Seek()
160 size_t rem = _size - _pos; in Write()
165 memcpy(_buffer + _pos, data, rem); in Write()
166 _pos += rem; in Write()
222 _pos = 0; in Init()
234 if (_pos >= _size) in Read()
238 UInt64 rem = _size - _pos; in Read()
245 UInt64 cacheTag = _pos >> _blockSizeLog; in Read()
257 size_t offset = (size_t)_pos & (((size_t)1 << _blockSizeLog) - 1); in Read()
263 _pos += cur; in Read()
275 case STREAM_SEEK_CUR: offset += _pos; break; in Seek()
281 _pos = offset; in Seek()