Up

Module type Basic

Basic is the minimal interface you need to provide to make a packed array for a new type.

Signature

type elt
val __bin_read_elt__ : (int -> elt) Core.Std.Bin_prot.Read.reader
val bin_size_elt : elt Core.Std.Bin_prot.Size.sizer
val bin_write_elt : elt Core.Std.Bin_prot.Write.writer
val elt_of_sexp : Sexplib.Sexp.t -> elt
val sexp_of_elt : elt -> Sexplib.Sexp.t
type t
val length : t -> int
val unsafe_get : t -> int -> elt
val of_array : elt array -> t
val unsafe_slice : t -> pos:int -> len:int -> t