package index

  1. Overview
  2. Docs

Module type Value.SSource

The input of Make for values. The same requirements as for Key apply.

Sourcetype t
Sourceval t : t Repr.t
Sourceval encode : t -> string
Sourceval encoded_size : int
Sourceval decode : string -> int -> t

decode s off is the decoded form of the encoded value at the offset off of string s. s may be a buffer that is overwritten later, so the result must not keep a reference to s.