Documentation
    Preparing search index...

    Interface TextEncoderEncodeIntoResult

    Result returned by MUtf8Encoder.encodeInto indicating encoding progress.

    This interface provides information about how much of the input string was processed and how many bytes were written to the destination buffer.

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

    Properties

    Properties

    read: number

    The number of Unicode code units (characters) read from the source string.

    Note that this counts code units, not code points. For supplementary characters (emoji, etc.), this will be 2 per character due to surrogate pairs.

    written: number

    The number of bytes written to the destination buffer.

    This represents the actual number of Modified UTF-8 bytes that were encoded into the destination array.