Read all the data from the given file handle 64kB at a time.
Stops when EOF is reached.
:: a typeCtrl KGHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12
Modulefs-api-0.4.0.0Haskell2010
module System.FS.API
Read all the data from the given file handle 64kB at a time.
Stops when EOF is reached.
hGetAllAt :: Monad m=> HasFS m h-> Handle h-> AbsOffsetThe offset at which to read.
-> m ByteStringLike hGetAll, but is thread safe since it does not change or depend
on the file offset. pread syscall is used internally.
Makes sure it reads all requested bytes. If eof is found before all bytes are read, it throws an exception.
hGetExactlyAt :: (HasCallStack, MonadThrow m)=> HasFS m h-> Handle h-> Word64The number of bytes to read.
-> AbsOffsetThe offset at which to read.
-> m ByteStringLike hGetExactly, but is thread safe since it does not change or depend
on the file offset. pread syscall is used internally.
This function makes sure that the whole Builder is written.
The chunk size of the resulting ByteString determines how much memory will be used while writing to the handle.
This function makes sure that the whole ByteString is written.