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.17.tbz
sha256=0f70824867269c02bf01ae12206aa47a6f669d69f1954c19e68ece9f444f1cba
sha512=11de2d7b7173659e6b83c487ac116a93d4b780b86da07386e7604f8fd45f6841e93cba59dba59ed7dbf6e1bc26561202ae1d2e7238a12f588dfd557d4f2da589

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.