MCPcopy
hub / github.com/gildas-lormeau/zip.js / Writer

Class Writer

index.d.ts:548–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546 * ```
547 */
548export class Writer<Type> implements Initializable, WritableWriter {
549 /**
550 * The `WritableStream` instance.
551 */
552 writable: WritableStream;
553 /**
554 * Initializes the instance asynchronously
555 *
556 * @param size the total size of the written data in bytes.
557 */
558 init?(size?: number): Promise<void>;
559 /**
560 * Appends a chunk of data
561 *
562 * @param array The chunk data to append.
563 *
564 * @virtual
565 */
566 writeUint8Array(array: Uint8Array): Promise<void>;
567 /**
568 * Retrieves all the written data
569 *
570 * @returns A promise resolving to the written data.
571 */
572 getData(): Promise<Type>;
573}
574
575/**
576 * Represents a {@link Writer} instance used to retrieve the written data as a `string`.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…