Lines Matching refs:Offset

101            uint64_t Offset, bool RequiresNullTerminator, bool IsVolatileSize);
175 uint64_t Offset) { in getFileSlice() argument
176 return getFileAux(FilePath, -1, MapSize, Offset, false, false); in getFileSlice()
191 static uint64_t getLegalMapOffset(uint64_t Offset) { in getLegalMapOffset() argument
192 return Offset & ~(sys::fs::mapped_file_region::alignment() - 1); in getLegalMapOffset()
195 static uint64_t getLegalMapSize(uint64_t Len, uint64_t Offset) { in getLegalMapSize() argument
196 return Len + (Offset - getLegalMapOffset(Offset)); in getLegalMapSize()
199 const char *getStart(uint64_t Len, uint64_t Offset) { in getStart() argument
200 return MFR.const_data() + (Offset - getLegalMapOffset(Offset)); in getStart()
205 uint64_t Offset, std::error_code &EC) in MemoryBufferMMapFile() argument
207 getLegalMapSize(Len, Offset), getLegalMapOffset(Offset), EC) { in MemoryBufferMMapFile()
209 const char *Start = getStart(Len, Offset); in MemoryBufferMMapFile()
254 uint64_t MapSize, int64_t Offset, bool RequiresNullTerminator,
259 uint64_t Offset, bool RequiresNullTerminator, bool IsVolatileSize) { in getFileAux() argument
266 getOpenFileImpl(FD, Filename, FileSize, MapSize, Offset, in getFileAux()
275 off_t Offset, in shouldUseMmap() argument
307 size_t End = Offset + MapSize; in shouldUseMmap()
330 uint64_t MapSize, int64_t Offset, bool RequiresNullTerminator, in getOpenFileImpl() argument
357 if (shouldUseMmap(FD, FileSize, MapSize, Offset, RequiresNullTerminator, in getOpenFileImpl()
362 MemoryBufferMMapFile(RequiresNullTerminator, FD, MapSize, Offset, EC)); in getOpenFileImpl()
379 if (lseek(FD, Offset, SEEK_SET) == -1) in getOpenFileImpl()
385 ssize_t NumRead = ::pread(FD, BufPtr, BytesLeft, MapSize-BytesLeft+Offset); in getOpenFileImpl()
415 int64_t Offset) { in getOpenFileSlice() argument
417 return getOpenFileImpl(FD, Filename, -1, MapSize, Offset, false, in getOpenFileSlice()