Skip to content
Shapemetry

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): number

concatBytes

function

concatBytes(parts: Uint8Array[]): Uint8Array

crc32

function

crc32(data: Uint8Array): number

deflateStored

function

deflateStored(raw: Uint8Array): Uint8Array

hexToUnitRgb

function

hexToUnitRgb(hex: string | undefined, fallback: [number, number, number]): [number, number, number]

latin1Bytes

function

latin1Bytes(text: string): Uint8Array

padToFourBytes

function

padToFourBytes(data: Uint8Array, fillByte: number): Uint8Array

zipStored

function

zipStored(entries: ZipEntry[]): Uint8Array
Last updated: 📖 1 min readEdit on GitHub