package bin

All checked builds pass
  1. Overview
  2. Docs
A DSL to describe binary formats

Install

dune-project
 Dependency

Authors

Maintainers

Sources

bstr-0.1.2.tbz
sha256=276f37c1a8798db2227d603e4ba47fe9f4c36bcdfb2e740ef1d3d3aff392d4b2
sha512=73689f2167df7a4d7617b00db29f7350172459b56371d5da75c34c7a0639ef251406cd597ecb1f25322a6abbd9ad2e5c9e34e66a64058182d65bee42d8d5d4bc

doc/bin/Bin_error/index.html

Module Bin_errorSource

Sourcemodule Len = Bin_type.Len
Sourcemodule Off = Bin_type.Off
Sourcetype kind =
  1. | Truncated of {
    1. need : Len.t;
    2. have : Len.t;
    }
  2. | Out_of_range of {
    1. kind : string;
    2. value : string;
    }
  3. | Unexpected_tag of {
    1. tag : int;
    2. expected : int list;
    }
  4. | Length_mismatch of {
    1. expected : int;
    2. got : int;
    }
  5. | Msg of string
Sourcetype t = {
  1. context : string list;
  2. offset : Off.abs Off.t;
  3. kind : kind;
}
Sourceval pp_kind : Format.formatter -> kind -> unit
Sourceval pp : Format.formatter -> t -> unit
Sourceexception Error of t
Sourceval to_string : t -> string
Sourceval msgf : ('a, Format.formatter, unit, 'b) format4 -> 'a
Sourceval v : offset:Off.abs Off.t -> kind -> 'a
Sourceval truncated : offset:Off.abs Off.t -> need:Len.t -> have:Len.t -> 'a
Sourceval out_of_range : offset:Off.abs Off.t -> kind:string -> value:string -> 'a
Sourceval unexpected_tag : offset:Off.abs Off.t -> tag:int -> expected:int list -> 'a
Sourceval length_mismatch : offset:Off.abs Off.t -> expected:int -> got:int -> 'a
Sourceval reraise_in : string -> exn -> 'a
Sourceval need_bytes : limit:Off.abs Off.t -> offset:Off.abs Off.t -> need:Len.t -> unit