Mwrite
Bun

method

string_decoder.StringDecoder.write

buffer: string | Buffer<ArrayBufferLike> | ArrayBufferView<ArrayBufferLike>
): string;

Returns a decoded string, ensuring that any incomplete multibyte characters at the end of the Buffer, or TypedArray, or DataView are omitted from the returned string and stored in an internal buffer for the next call to stringDecoder.write() or stringDecoder.end().

@param buffer

The bytes to decode.