Lines Matching refs:ReadBytes
233 Expected<size_t> ReadBytes = sys::fs::readNativeFile( in getMemoryBufferForStream() local
235 if (!ReadBytes) in getMemoryBufferForStream()
236 return errorToErrorCode(ReadBytes.takeError()); in getMemoryBufferForStream()
237 if (*ReadBytes == 0) in getMemoryBufferForStream()
239 Buffer.set_size(Buffer.size() + *ReadBytes); in getMemoryBufferForStream()
487 Expected<size_t> ReadBytes = in getOpenFileImpl() local
489 if (!ReadBytes) in getOpenFileImpl()
490 return errorToErrorCode(ReadBytes.takeError()); in getOpenFileImpl()
491 if (*ReadBytes == 0) { in getOpenFileImpl()
495 ToRead = ToRead.drop_front(*ReadBytes); in getOpenFileImpl()
496 Offset += *ReadBytes; in getOpenFileImpl()