Lines Matching defs:Offset

125 getFileAux(const Twine &Filename, uint64_t MapSize, uint64_t Offset,
178 uint64_t Offset, bool IsVolatile,
180 return getFileAux<MemoryBuffer>(FilePath, MapSize, Offset, /*IsText=*/false,
211 static uint64_t getLegalMapOffset(uint64_t Offset) {
212 return Offset & ~(sys::fs::mapped_file_region::alignment() - 1);
215 static uint64_t getLegalMapSize(uint64_t Len, uint64_t Offset) {
216 return Len + (Offset - getLegalMapOffset(Offset));
219 const char *getStart(uint64_t Len, uint64_t Offset) {
220 return MFR.const_data() + (Offset - getLegalMapOffset(Offset));
225 uint64_t Offset, std::error_code &EC)
226 : MFR(FD, Mapmode<MB>, getLegalMapSize(Len, Offset),
227 getLegalMapOffset(Offset), EC) {
229 const char *Start = getStart(Len, Offset);
264 return getFileAux<MemoryBuffer>(Filename, /*MapSize=*/-1, /*Offset=*/0,
272 uint64_t MapSize, int64_t Offset, bool RequiresNullTerminator,
277 getFileAux(const Twine &Filename, uint64_t MapSize, uint64_t Offset,
285 auto Ret = getOpenFileImpl<MB>(FD, Filename, /*FileSize=*/-1, MapSize, Offset,
295 Filename, /*MapSize=*/-1, /*Offset=*/0, /*IsText=*/false,
301 uint64_t Offset, bool IsVolatile,
304 Filename, MapSize, Offset, /*IsText=*/false,
361 off_t Offset,
392 size_t End = Offset + MapSize;
415 uint64_t Offset) {
448 Offset, EC));
462 uint64_t Offset) {
463 return getReadWriteFile(Filename, -1, MapSize, Offset);
469 uint64_t MapSize, int64_t Offset, bool RequiresNullTerminator,
496 if (shouldUseMmap(FD, FileSize, MapSize, Offset, RequiresNullTerminator,
501 RequiresNullTerminator, FD, MapSize, Offset, EC));
524 sys::fs::readNativeFileSlice(FD, ToRead, Offset);
532 Offset += *ReadBytes;
548 sys::fs::file_t FD, const Twine &Filename, uint64_t MapSize, int64_t Offset,
551 return getOpenFileImpl<MemoryBuffer>(FD, Filename, -1, MapSize, Offset, false,