Read and write integers in LEB128 format (as used in WebAssembly or DWARF).
All functions mentioning 64-bit integers takes values complying with the
helins.binf.int64
namespace.
Read and write integers in LEB128 format (as used in WebAssembly or DWARF). All functions mentioning 64-bit integers takes values complying with the `helins.binf.int64` namespace.
(n-byte-i32 i32)
Computes the number of bytes needed for encoding the given signed value (at most 32-bits).
Computes the number of bytes needed for encoding the given signed value (at most 32-bits).
(n-byte-i64 i64)
Computes the number of bytes needed for encoding the given signed value (at most 64-bits).
Computes the number of bytes needed for encoding the given signed value (at most 64-bits).
(n-byte-max n-bit)
Computes the maximum number of bytes needed for expressing a value containing
n-bit
bits.
Computes the maximum number of bytes needed for expressing a value containing `n-bit` bits.
(n-byte-u32 u32)
Computes the number of bytes needed for encoding the given unsigned value (at most 32-bits).
Computes the number of bytes needed for encoding the given unsigned value (at most 32-bits).
(n-byte-u64 u64)
Computes the number of bytes needed for encoding the given unsigned value (at most 64-bits).
Computes the number of bytes needed for encoding the given unsigned value (at most 64-bits).
(rr-i32 view)
(rr-i32 view n-bit)
Reads a signed integer containing at most 32-bits from a view.
n-bit
is non-nilable and defaults to 32.
Reads a signed integer containing at most 32-bits from a view. `n-bit` is non-nilable and defaults to 32.
(rr-i64 view)
(rr-i64 view n-bit)
Reads a signed integer containing at most 64-bits from a view.
n-bit
is non-nilable and defaults to 64.
Reads a signed integer containing at most 64-bits from a view. `n-bit` is non-nilable and defaults to 64.
(rr-u32 view)
Reads an unsigned integer containing at most 32-bits from a view.
Reads an unsigned integer containing at most 32-bits from a view.
(rr-u64 view)
Reads an unsigned integer containing at most 64-bits from a view.
Reads an unsigned integer containing at most 64-bits from a view.
(wr-i32 view i32)
Writes a signed integer containing at most 32-bits from a view.
Writes a signed integer containing at most 32-bits from a view.
(wr-i64 view i64)
Write a signed integer containing at most 64-bits from a view.
Write a signed integer containing at most 64-bits from a view.
(wr-u32 view u32)
Writes an unsigned integer containing at most 32-bits from a view.
Writes an unsigned integer containing at most 32-bits from a view.
(wr-u64 view u64)
Write an unsigned integer containing at most 32-bits from a view.
Write an unsigned integer containing at most 32-bits from a view.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close