UNPKG

javascript-binary-converter

Version:

A utility package to quickly handle and convert various Javascript binary objects

20 lines (19 loc) 733 B
import { BlobCreationConfig, BytesArray, ImageCreationConfig, TypedArray } from '../sharedTypes'; export default class TypedArrayConverter { private original; constructor(original: TypedArray); toUint8Array(): Uint8Array; toInt8Array(): Int8Array; toInt16Array(): Int16Array; toUint16Array(): Uint16Array; toInt32Array(): Int32Array; toUint32Array(): Uint32Array; toBigUint64Array(): BigUint64Array; toBigInt64Array(): BigInt64Array; toFloat32(): Float32Array; toText(): string; toBlob(config?: BlobCreationConfig): Promise<Blob>; toImage(config?: ImageCreationConfig): Promise<HTMLImageElement>; toBytes(): BytesArray; toDecimalBytes(): number[]; }