Io - Binary
API reference — the Binary doors of @huukhanhnguyen/io: readers, writers and their option / result types, all on this page.
import { adler32, concatBytes } from '@huukhanhnguyen/io'Source: ./binary. See all formats or the Guide.
API reference
Signatures are generated from the live package .d.ts - not hand-written.
adler32
function
adler32(data: Uint8Array): numberconcatBytes
function
concatBytes(parts: Uint8Array[]): Uint8Arraycrc32
function
crc32(data: Uint8Array): numberdeflateStored
function
deflateStored(raw: Uint8Array): Uint8ArrayhexToUnitRgb
function
hexToUnitRgb(hex: string | undefined, fallback: [number, number, number]): [number, number, number]latin1Bytes
function
latin1Bytes(text: string): Uint8ArraypadToFourBytes
function
padToFourBytes(data: Uint8Array, fillByte: number): Uint8ArrayzipStored
function
zipStored(entries: ZipEntry[]): Uint8Array