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

EncodeUTF8

Streaming UTF-8 encoding

class EncodeUTF8 {
constructor(cb?: FlateStreamHandler);
private d;
 
push(chunk: string, final?: boolean): void;
}

§Constructors

§
new EncodeUTF8(cb?: FlateStreamHandler)
[src]

Creates a UTF-8 decoding stream

@param cb

The callback to call whenever data is encoded

§Properties

§

The handler to call whenever data is available

§Methods

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

Pushes a chunk to be encoded to UTF-8

@param chunk

The string data to push

@param final

Whether this is the last chunk