INNER CODE UNIT · TypeScript

registerCodec

gildas-lormeau/zip.js · index.d.ts:273

export function registerCodec(codec: CodecDefinition): void;

/**
 * Unregisters a codec previously registered with {@link registerCodec}.
 *
 * @param compressionMethod The compression method of the codec.
 */
export function unregisterCodec(compressionMethod: number): void;

/**
 * Returns the definitions of the codecs registered with {@link registerCodec}, in registration
 * order. The returned objects are snapshots: modifying them does not alter the registered codecs.
 *
 * @remarks
 * The `CompressionStream` and `DecompressionStream` classes of a codec registered with
 * {@link CodecDefinition#codecURI} only appear once the module has been imported, i.e. after the
 * first entry using the codec has been read or written.
 *

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…