async flush() {
        if (this.err !== null) throw this.err;
        if (this.usedBufferBytes === 0) return;
        try {
            await Deno.writeAll(this.writer, this.buf.subarray(0, this.usedBufferBytes));
        } catch (e) {
            this.err = e;
            throw e;
        }
        this.buf = new Uint8Array(this.buf.length);
        this.usedBufferBytes = 0;
    }
/** Flush writes any buffered data to the underlying io.Writer. */
Flush writes any buffered data to the underlying io.Writer.
Flush writes any buffered data to the underlying io . Writer .
async flush() {
        if (this.err !== null) throw this.err;
        if (this.usedBufferBytes === 0) return;
        try {
            await Deno.writeAll(this.writer, this.buf.subarray(0, this.usedBufferBytes));
        } catch (e) {
            this.err = e;
            throw e;
        }
        this.buf = new Uint8Array(this.buf.length);
        this.usedBufferBytes = 0;
    }
async flush ( ) { if ( this . err !== null ) throw this . err ; if ( this . usedBufferBytes === 0 ) return ; try { await Deno . writeAll ( this . writer , this . buf . subarray ( 0 , this . usedBufferBytes ) ) ; } catch ( e ) { this . err = e ; throw e ; } this . buf = new Uint8Array ( this . buf . length ) ; this . usedBufferBytes = 0 ; }
Flush writes any buffered data to the underlying io.Writer.
Flush writes any buffered data to the underlying io . Writer .