package biniou
Binary data format designed for speed, safety, ease of use and backward compatibility as protocols evolve
Install
Dune Dependency
Authors
Maintainers
Sources
biniou-1.2.2.tbz
sha256=8bf3ff17cd0ecb2d6b6d1d94cb08ef089d44caef96e9bae6be6839d428fa318f
sha512=7d03b3759a3a2e1c77713aa1b8375a1f1917f49d14fe5e3cb01d5e53a12e6385b7a3b0f4827f3be71182c31c416d780e1f9ef011dc205cb8f9b0ab2d8fc23cfd
doc/biniou/Bi_vint/index.html
Module Bi_vint
Source
Vint: variable-length representation of integers
This module currently provides only conversions between vint and the OCaml int type. Here are the current limits of OCaml ints on 32-bit and 64-bit systems:
word length (bits) 32 64 int length (bits) 31 63 min_int (lowest signed int) 0x40000000 0x4000000000000000 -1073741824 -4611686018427387904 max_int (greatest signed int) 0x3fffffff 0x3fffffffffffffff 1073741823 4611686018427387903 lowest unsigned int 0x0 0x0 0 0 greatest unsigned int 0x7fffffff 0x7fffffffffffffff 2147483647 9223372036854775807 maximum vint length (data bits) 31 63 maximum vint length (total bytes) 5 9
Unsigned int. Note that ints (signed) and uints use the same representation for integers within [0, max_int
].
Convert an unsigned int to a vint.
Convert a signed int to a vint.
Interpret a vint as a signed int.
Write an unsigned int to a buffer.
Write a signed int to a buffer.
Read an unsigned int from a buffer.
Read a signed int from a buffer.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>