package mirage-block-lwt

  1. Overview
  2. Docs

Module Mirage_block_lwt.FoldSource

Fold over the bytes of a block device

Parameters

module A : S

Signature

Sourceval s : f:('a -> int64 -> Cstruct.t -> 'a Lwt.t) -> 'a -> A.t -> ('a, A.error) result Lwt.t

Folds f across blocks read sequentially from a block device