package containers

  1. Overview
  2. Docs
A modular, clean and powerful extension of the OCaml standard library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

containers-3.18.tbz
sha256=52eeff91ce42b52305e6aaa8a58b88ce8f0a5a984199e59ca7e2fd9ebabe61d7
sha512=dc7337e6cbc9850542c7c9228d3bcb4e4add57a55e2a2992f21fb4761b3e10a68ef1d57ca37a7f5b303fc875fe3df5ecb69dbf2930bfcd1561ce03f7ae83e24b

doc/containers.leb128/Containers_leb128/Decode/index.html

Module Containers_leb128.DecodeSource

Sourceval decode_zigzag : int64 -> int64

Turn an unsigned integer into a signed one.

See https://en.wikipedia.org/wiki/Variable-length_quantity#Zigzag_encoding

Sourceval skip : Byte_slice.t -> int -> int

skip slice off reads an integer at offset off, and returns how many bytes the integer occupies.

Sourceval u64 : Byte_slice.t -> int -> int64 * int

u64 slice off reads an integer at offset off, and returns a pair v, n_consumed. v is the read integer, n_consumed is the number of bytes consumed during reading.

Sourceval i64 : Byte_slice.t -> int -> int64 * int

Read a signed int64 by reading a u64 and zigzag decoding it

Sourceval int_truncate : Byte_slice.t -> int -> int * int

Like i64 but truncates to integer. Returns a pair v, n_consumed.

Sourceval uint_truncate : Byte_slice.t -> int -> int * int

Like u64 but truncates to integer.