Lines Matching refs:offset
36 // maximum number of entries in the zlib offset table buffer
85 virtual status_t ReadData(off_t offset, void* buffer, size_t size)
90 if (offset < 0)
93 if ((uint64)offset > fSize || size > fSize - offset)
96 return fDataReader->ReadData(fOffset + offset, buffer, size);
99 virtual status_t ReadDataToOutput(off_t offset, size_t size,
105 if (offset < 0)
108 if ((uint64)offset > fSize || size > fSize - offset)
121 status_t error = fDataReader->ReadData(fOffset + offset,
131 offset += toRead;
186 // allocate a buffer for the offset table
206 virtual status_t ReadDataToOutput(off_t offset, size_t size,
209 // check offset and size
213 if (offset < 0)
216 if ((uint64)offset > fUncompressedSize
217 || size > fUncompressedSize - offset) {
234 int64 chunkIndex = offset / fChunkSize;
236 size_t inChunkOffset = offset - chunkOffset;
267 // get the chunk offset and size
268 uint64 offset = 0;
270 status_t error = _GetCompressedChunkOffsetAndSize(chunkIndex, offset,
282 error = fDataReader->ReadData(offset, fUncompressBuffer->Buffer(),
291 error = fDataReader->ReadData(offset, readBuffer->Buffer(),
318 // get the offset
319 uint64 offset;
322 offset = 0;
325 offset);
330 // get the end offset
343 if (endOffset < offset)
346 _offset = fOffset + fOffsetTableSize + offset;
347 _size = endOffset - offset;
374 // get and check the offset