Std.Leb128include Core_kernel.Bin_prot.Binable.S with type t := tval bin_size_t : t Bin_prot.Size.sizerval bin_write_t : t Bin_prot.Write.writerval bin_read_t : t Bin_prot.Read.readerval __bin_read_t__ : (int -> t) Bin_prot.Read.readerval bin_writer_t : t Bin_prot.Type_class.writerval bin_reader_t : t Bin_prot.Type_class.readerval bin_t : t Bin_prot.Type_class.ttype 'a encoder = ?signed:bool -> 'a -> tencode ~signed v encodes value v in a LEB128 format. If signed is true, then uses signed encoding.
decode leb decodes a number from LEB128 representation.
type 'a decoder = t -> 'a Core_kernel.Or_error.tdecode leb decodes a number from LEB128 representation.
val size : t -> intsize leb return size in bytes of the number stored in LEB128 encoding.
val read : 
  ?signed:bool ->
  string ->
  pos_ref:int Core_kernel.ref ->
  t Core_kernel.Or_error.tval write : t -> Regular.Std.bytes -> pos:int -> unitval to_int : int decoderval to_int32 : int32 decoderval to_int64 : int64 decoderval of_int : int encoderval of_int32 : int32 encoderval of_int64 : int64 encoder