lsm-tree-0.1.0.0: Log-structured merge-trees
Safe HaskellSafe-Inferred
LanguageGHC2021

Database.LSMTree.Internal.WriteBufferReader

Description

A write buffer that is being read incrementally.

Synopsis

Documentation

readWriteBuffer :: (MonadMVar m, MonadMask m, MonadSTM m, MonadST m) => ResolveSerialisedValue -> HasFS m h -> HasBlockIO m h -> ForKOps FsPath -> Ref (BlobFile m h) -> m WriteBuffer Source #

Read a serialised WriteBuffer back into memory.

The argument blob file (BlobFile) must be the file associated with the argument key/ops file (ForKOps). readWriteBuffer does not check this.