• Home
  • Raw
  • Download

Lines Matching refs:Offset

102            uint64_t Offset, bool RequiresNullTerminator, bool IsVolatileSize);
177 uint64_t Offset) { in getFileSlice() argument
178 return getFileAux(FilePath, -1, MapSize, Offset, false, false); in getFileSlice()
193 static uint64_t getLegalMapOffset(uint64_t Offset) { in getLegalMapOffset() argument
194 return Offset & ~(sys::fs::mapped_file_region::alignment() - 1); in getLegalMapOffset()
197 static uint64_t getLegalMapSize(uint64_t Len, uint64_t Offset) { in getLegalMapSize() argument
198 return Len + (Offset - getLegalMapOffset(Offset)); in getLegalMapSize()
201 const char *getStart(uint64_t Len, uint64_t Offset) { in getStart() argument
202 return MFR.const_data() + (Offset - getLegalMapOffset(Offset)); in getStart()
207 uint64_t Offset, std::error_code &EC) in MemoryBufferMMapFile() argument
209 getLegalMapSize(Len, Offset), getLegalMapOffset(Offset), EC) { in MemoryBufferMMapFile()
211 const char *Start = getStart(Len, Offset); in MemoryBufferMMapFile()
256 uint64_t MapSize, int64_t Offset, bool RequiresNullTerminator,
261 uint64_t Offset, bool RequiresNullTerminator, bool IsVolatileSize) { in getFileAux() argument
268 getOpenFileImpl(FD, Filename, FileSize, MapSize, Offset, in getFileAux()
277 off_t Offset, in shouldUseMmap() argument
309 size_t End = Offset + MapSize; in shouldUseMmap()
332 uint64_t MapSize, int64_t Offset, bool RequiresNullTerminator, in getOpenFileImpl() argument
359 if (shouldUseMmap(FD, FileSize, MapSize, Offset, RequiresNullTerminator, in getOpenFileImpl()
364 MemoryBufferMMapFile(RequiresNullTerminator, FD, MapSize, Offset, EC)); in getOpenFileImpl()
381 if (lseek(FD, Offset, SEEK_SET) == -1) in getOpenFileImpl()
387 ssize_t NumRead = ::pread(FD, BufPtr, BytesLeft, MapSize-BytesLeft+Offset); in getOpenFileImpl()
417 int64_t Offset) { in getOpenFileSlice() argument
419 return getOpenFileImpl(FD, Filename, -1, MapSize, Offset, false, in getOpenFileSlice()