Lines Matching refs:offset
73 uint32 offset = kChunkSize;
74 for (size_t i = 1; i < actual32BitChunks; i++, offset += kChunkSize)
75 fOffsets[i] = offset;
80 uint64 offset = actual32BitChunks * kChunkSize;
83 i++, offset += kChunkSize) {
84 *offsets++ = (uint32)offset;
85 *offsets++ = uint32(offset >> 32);
107 uint64 offset = (*this)[baseIndex];
109 offset += (uint64)B_BENDIAN_TO_HOST_INT16(chunkSizes[i]) + 1;
113 // chunkSizes[i]. We compute the offset of the following element
116 if (offset <= ~(uint32)0) {
117 fOffsets[index] = (uint32)offset;
134 fOffsets[index] = (uint32)offset;
135 fOffsets[index + 1] = uint32(offset >> 32);
174 // the first 64 bit offset.
208 PackageFileHeapAccessorBase::ReadDataToOutput(off_t offset, size_t size,
214 if (offset < 0 || (uint64)offset > fUncompressedHeapSize
215 || size > fUncompressedHeapSize - offset) {
261 size_t chunkIndex = size_t(offset / kChunkSize);
262 size_t inChunkOffset = (uint64)offset - (uint64)chunkIndex * kChunkSize;
291 PackageFileHeapAccessorBase::ReadAndDecompressChunkData(uint64 offset,
297 return ReadFileData(offset, uncompressedDataBuffer, compressedSize);
300 status_t error = ReadFileData(offset, compressedDataBuffer, compressedSize);
335 PackageFileHeapAccessorBase::ReadFileData(uint64 offset, void* buffer,
338 status_t error = fFile->ReadAtExactly(fHeapOffset + (off_t)offset, buffer,
342 "to read data: %s\n", offset, buffer, size, strerror(error));