• OCaml logo OCaml logo
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Searching...
    Or go to: Standard Library API
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Get started
  • mirage-block-lwt

  • Documentation
  • mirage-block-lwt lib
  • Mirage_block_mem Module
package mirage-block-lwt
  • mirage-block-lwt
    • Mirage_block_compare
      • Compare
        • Dest
        • From
    • Mirage_block_copy
      • Copy
        • Dest
        • From
        • From_seekable
        • Sparse_copy
      • Make_seekable
        • B
      • Sparse_copy
        • Dest
        • From
    • Mirage_block_iter
      • Fast_fold
        • Seekable
      • Fold
        • Block
    • Mirage_block_log
      • Log
    • Mirage_block_lwt
      • Compare
        • A
        • B
      • Copy
        • A
        • B
      • Fast_fold
        • A
      • Fill
        • A
      • Fold
        • A
      • Make_safe
        • B
      • Mem
      • RESIZABLE
      • S
      • SEEKABLE
      • Sparse_copy
        • A
        • B
    • Mirage_block_lwt_s
      • RESIZABLE
      • S
      • SEEKABLE
    • Mirage_block_mem
      • Int64Map
    • Mirage_block_patterns
      • Fill
        • Block
    • Mirage_block_safe
      • Make
        • B
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'a io = 'a Lwt.t
type id = string
type page_aligned_buffer = Cstruct.t
module Int64Map : sig ... end
type t = {
  1. mutable map : page_aligned_buffer Int64Map.t;
  2. info : Mirage_block.info;
  3. id : id;
}
type error = Mirage_block.error
type write_error = Mirage_block.write_error
val pp_error : Mirage_block.error Fmt.t
val pp_write_error : Mirage_block.write_error Fmt.t
val devices : (id, t) Hashtbl.t
val get_info : t -> Mirage_block.info Lwt.t
val connect : id -> t Lwt.t
val disconnect : t -> unit Lwt.t
val read : t -> Int64Map.key -> Cstruct.t list -> (unit, 'a) Pervasives.result Lwt.t
val write : t -> Int64Map.key -> page_aligned_buffer list -> (unit, 'a) Pervasives.result Lwt.t

Footer

OCaml

Innovation. Community. Security.

GitHub Discord Twitter Peertube RSS

About Us

  • Industrial Users
  • Academic Users
  • Why OCaml

Resources

  • Get Started
  • Language Manual
  • Standard Library API
  • Books
  • Releases

Community

  • Blog
  • Jobs

Policies

  • Carbon Footprint
  • Governance
  • Privacy
  • Code of Conduct