Lines Matching refs:offset
81 int32_t RandomAccessFile::DoMMap(int32_t bufCapacity, int64_t offset, MmapInfo& mmapInfo)
94 if (offset < 0 || offset > fileLength - bufCapacity) {
95 SIGNATURE_TOOLS_LOGE("offset is less than 0 OR read offset is out of range. offset: %" PRId64
96 ", range: %" PRId64, offset, fileLength - bufCapacity);
99 // Memory mapped file offset, 0 OR an integer multiple of 4K
100 mmapInfo.mmapPosition = (offset / memoryPageSize) * memoryPageSize;
102 mmapInfo.readMoreLen = static_cast<int>(offset - mmapInfo.mmapPosition);
113 int32_t RandomAccessFile::ReadFileFullyFromOffset(char buf[], int64_t offset, int64_t bufCapacity)
121 int32_t ret = DoMMap(bufCapacity, offset, mmapInfo);
136 int32_t RandomAccessFile::ReadFileFullyFromOffset(ByteBuffer& buffer, int64_t offset)
145 int64_t ret = DoMMap(bufCapacity, offset, mmapInfo);
191 int32_t chunkSize, int64_t offset)
194 int32_t ret = DoMMap(chunkSize, offset, mmapInfo);