To focus the search input from anywhere on the page, press the 'S' key.
in-package search v0.1.0
type 'a t = private 'a Size.t =
A value representing information known about the length in bytes of encodings produced by a particular binary codec:
Static n: all encodings produced by this codec have length
Dynamic f: the length of binary encodings is dependent on the specific value, but may be efficiently computed at run-time via the function
Unknown: this codec may produce encodings that cannot be efficiently pre-computed.
val of_value : 'a Repr__.Type.t -> ('a -> int) t
val of_encoding : 'a Repr__.Type.t -> (string -> int -> int) t
Constructors for custom value sizers, for use with binary codecs that are not structurally-defined.
val t : 'a Repr__.Type.t -> 'a sizer
val custom_static : int -> _ sizer
val custom_dynamic : ?of_value:('a -> int) -> ?of_encoding:(string -> int -> int) -> unit -> 'a sizer