UNPKG

@fahnestockj/numcodecs-fork

Version:

Buffer compression and transformation codecs for use in data storage and communication applications.

11 lines (10 loc) 299 B
export interface CodecConstructor<T> { fromConfig(config: T & { id: string; }): Codec; codecId: string; } export interface Codec { encode(data: Uint8Array): Uint8Array | Promise<Uint8Array>; decode(data: Uint8Array, out?: Uint8Array): Uint8Array | Promise<Uint8Array>; }