Serialization of a bounded int table using bin_io or sexp preserves num_keys, but only takes space proportional to the length of the table.
include Bin_prot.Binable.S1 with type 'data t := 'data t
val bin_shape_t : Bin_prot.Shape.t -> Bin_prot.Shape.tval bin_size_t : ('a, 'data t) Bin_prot.Size.sizer1val bin_write_t : ('a, 'data t) Bin_prot.Write.writer1val bin_read_t : ('a, 'data t) Bin_prot.Read.reader1val __bin_read_t__ : ('a, int -> 'data t) Bin_prot.Read.reader1val bin_writer_t : ('a, 'data t) Bin_prot.Type_class.S1.writerval bin_reader_t : ('a, 'data t) Bin_prot.Type_class.S1.readerval bin_t : ('a, 'data t) Bin_prot.Type_class.S1.tinclude Ppx_sexp_conv_lib.Sexpable.S1 with type 'data t := 'data t
val t_of_sexp : (Sexplib0.Sexp.t -> 'a) -> Sexplib0.Sexp.t -> 'data tval sexp_of_t : ('a -> Sexplib0.Sexp.t) -> 'data t -> Sexplib0.Sexp.tval create : num_keys:int -> 'data tval of_alist : (Key.t * 'data) list -> 'data t Core_kernel.Or_error.tof_alist returns a table whose maximum allowed key is the maximum key in the input list.