Skip to main content

A simple byte-buffer reader and writer. Uses Node.js' Buffer. Supports little- and big-endianness. Supports signed & unsigned integers of 8, 16, and 32 bits, as well as floats of 32 and 64 bits.

This package works with Node.js, DenoIt is unknown whether this package works with Cloudflare Workers, Bun
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
JSR Score
100%
Published
5 days ago (1.0.5)

default

A simple byte-buffer reader and writer. Uses node:buffer. Supports little- and big-endianness. Supports signed & unsigned integers of 8, 16, and 32 bits, as well as floats of 32 and 64 bits.

E
Endianness

Describes the endianness of a number. @see https://en.wikipedia.org/wiki/Endianness

v
f32

A 32-bit float

v
f64

A 64-bit float

v
i16

A signed 16-bit integer

v
i32

A signed 32-bit integer

v
i8

A signed 8-bit integer

c
NumType

A type that can be read from, or written to, a buffer

v
u16

An unsigned 16-bit integer

v
u32

An unsigned 32-bit integer

v
u8

An unsigned 8-bit integer