TextEncoderEncodeIntoResult: {
    read: number;
    written: number;
}

The object returned by encodeInto. It reports on the progress of the encoder.

Type declaration

  • read: number

    The number of UTF-16 code points that were read.

  • written: number

    The number of bytes written to the given buffer.