Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

DecodeUTF8

Streaming UTF-8 decoding

class DecodeUTF8 {
constructor(cb?: StringStreamHandler);
private p;
private t;
 
push(chunk: Uint8Array, final?: boolean): void;
}

§Constructors

§
new DecodeUTF8(cb?: StringStreamHandler)
[src]

Creates a UTF-8 decoding stream

@param cb

The callback to call whenever data is decoded

§Properties

§

The handler to call whenever data is available

§Methods

§
push(chunk: Uint8Array, final?: boolean): void
[src]

Pushes a chunk to be decoded from UTF-8 binary

@param chunk

The chunk to push

@param final

Whether this is the last chunk