Liking cljdoc? Tell your friends :D

helins.binf.leb128

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.
raw docstring

n-byte-i32clj/s

(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).
sourceraw docstring

n-byte-i64clj/s

(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).
sourceraw docstring

n-byte-maxclj/s

(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.
sourceraw docstring

n-byte-u32clj/s

(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).
sourceraw docstring

n-byte-u64clj/s

(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).
sourceraw docstring

rr-i32clj/s

(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.
sourceraw docstring

rr-i64clj/s

(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.
sourceraw docstring

rr-u32clj/s

(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.
sourceraw docstring

rr-u64clj/s

(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.
sourceraw docstring

wr-i32clj/s

(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.
sourceraw docstring

wr-i64clj/s

(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.
sourceraw docstring

wr-u32clj/s

(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.
sourceraw docstring

wr-u64clj/s

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close