| 546 | * ``` |
| 547 | */ |
| 548 | export 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`. |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…