Skip to main content

Built and signed on GitHub Actions

😋 A small helper module for working with different raw (byte) types in javascript

This package works with Bun, Cloudflare Workers, Node.js, Deno, Browsers
JSR Score
76%
Published
3 months ago (0.4.0)
v
align

Align the value unaligned to the first integer that is divisible by alignment

c
ArrayBufferType
No documentation available
N
Arrays
No documentation available
c
Arrays.ArrayBufferType
No documentation available
c
Arrays.ArrayType
No documentation available
v
Arrays.BigInt64ArrayType
No documentation available
v
Arrays.BigUint64ArrayType
No documentation available
v
Arrays.Float32ArrayType
No documentation available
v
Arrays.Float64ArrayType
No documentation available
v
Arrays.Int16ArrayType
No documentation available
v
Arrays.Int32ArrayType
No documentation available
v
Arrays.Int8ArrayType
No documentation available
c
Arrays.TypedArray
No documentation available
I
Arrays.TypedArrayTypeConstructor
No documentation available
v
Arrays.Uint16ArrayType
No documentation available
v
Arrays.Uint32ArrayType
No documentation available
v
Arrays.Uint8ArrayType
No documentation available
v
Arrays.Uint8ClampedArrayType
No documentation available
c
ArrayType
No documentation available
v
asciiChar
No documentation available
v
BigInt64ArrayType
No documentation available
v
BigUint64ArrayType
No documentation available
N
Bitflags
No documentation available
c
Bitflags.BitFlags16
No documentation available
c
Bitflags.BitFlags32
No documentation available
c
Bitflags.BitFlags64
No documentation available
c
Bitflags.BitFlags8
No documentation available
c
BitFlags16
No documentation available
c
BitFlags32
No documentation available
c
BitFlags64
No documentation available
c
BitFlags8
No documentation available
c
Bool
No documentation available
v
bool
No documentation available
N
Compounds
No documentation available
c
Compounds.Struct
No documentation available
c
Compounds.TaggedUnion
No documentation available
c
Compounds.Tuple
No documentation available
c
CString
No documentation available
v
cstring
No documentation available
c
F32
No documentation available
v
f32
No documentation available
v
f32be
No documentation available
v
f32le
No documentation available
c
F64
No documentation available
v
f64
No documentation available
v
f64be
No documentation available
v
f64le
No documentation available
c
FixedLengthString
No documentation available
v
Float32ArrayType
No documentation available
v
Float64ArrayType
No documentation available
v
getBiggestAlignment

Find and returns the biggest alignment out of a record / array of types

c
I16
No documentation available
v
i16
No documentation available
v
i16be
No documentation available
v
i16le
No documentation available
c
I32
No documentation available
v
i32
No documentation available
v
i32be
No documentation available
v
i32le
No documentation available
c
I32Leb128
No documentation available
v
i32leb128
No documentation available
c
I64
No documentation available
v
i64
No documentation available
v
i64be
No documentation available
v
i64le
No documentation available
c
I64Leb128
No documentation available
v
i64leb128
No documentation available
c
I8
No documentation available
v
i8
No documentation available
T
InnerType

Extract the inner value of a codec

v
Int16ArrayType
No documentation available
v
Int32ArrayType
No documentation available
v
Int8ArrayType
No documentation available
v
isLittleEndian

The endianess of your machine, true if little endian and false if big endian.

I
Options
No documentation available
N
Primitives
No documentation available
c
Primitives.Bool
No documentation available
v
Primitives.bool
No documentation available
c
Primitives.F32
No documentation available
v
Primitives.f32
No documentation available
v
Primitives.f32be
No documentation available
v
Primitives.f32le
No documentation available
c
Primitives.F64
No documentation available
v
Primitives.f64
No documentation available
v
Primitives.f64be
No documentation available
v
Primitives.f64le
No documentation available
c
Primitives.I16
No documentation available
v
Primitives.i16
No documentation available
v
Primitives.i16be
No documentation available
v
Primitives.i16le
No documentation available
c
Primitives.I32
No documentation available
v
Primitives.i32
No documentation available
v
Primitives.i32be
No documentation available
v
Primitives.i32le
No documentation available
c
Primitives.I64
No documentation available
v
Primitives.i64
No documentation available
v
Primitives.i64be
No documentation available
v
Primitives.i64le
No documentation available
c
Primitives.I8
No documentation available
v
Primitives.i8
No documentation available
c
Primitives.U16
No documentation available
v
Primitives.u16
No documentation available
v
Primitives.u16be
No documentation available
v
Primitives.u16le
No documentation available
c
Primitives.U32
No documentation available
v
Primitives.u32
No documentation available
v
Primitives.u32be
No documentation available
v
Primitives.u32le
No documentation available
c
Primitives.U64
No documentation available
v
Primitives.u64
No documentation available
v
Primitives.u64be
No documentation available
v
Primitives.u64le
No documentation available
c
Primitives.U8
No documentation available
v
Primitives.u8
No documentation available
c
SizedType

SizedType<T> is one of the two base classes for implementing a codec.

N
Strings
No documentation available
v
Strings.asciiChar
No documentation available
c
Strings.CString
No documentation available
v
Strings.cstring
No documentation available
c
Strings.FixedLengthString
No documentation available
v
Strings.utf8Char
No documentation available
c
Struct
No documentation available
c
TaggedUnion
No documentation available
c
Tuple
No documentation available
c
TypedArray
No documentation available
I
TypedArrayTypeConstructor
No documentation available
c
U16
No documentation available
v
u16
No documentation available
v
u16be
No documentation available
v
u16le
No documentation available
c
U32
No documentation available
v
u32
No documentation available
v
u32be
No documentation available
v
u32le
No documentation available
c
U64
No documentation available
v
u64
No documentation available
v
u64be
No documentation available
v
u64le
No documentation available
c
U8
No documentation available
v
u8
No documentation available
v
Uint16ArrayType
No documentation available
v
Uint32ArrayType
No documentation available
v
Uint8ArrayType
No documentation available
v
Uint8ClampedArrayType
No documentation available
c
UnsizedType

UnsizedType<T> is one of the two base classes for implementing a codec.

v
utf8Char
No documentation available
T
ValueOf
No documentation available
N
VarInts
No documentation available
c
VarInts.I32Leb128
No documentation available
v
VarInts.i32leb128
No documentation available
c
VarInts.I64Leb128
No documentation available
v
VarInts.i64leb128
No documentation available