@cto.af/wtf8 - v0.0.2
    Preparing search index...

    Class Wtf8Encoder

    Encoder for WTF-8.

    Implements

    • TextEncoderCommon
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    encoding: "wtf-8" = WTF8

    Returns "utf-8".

    MDN Reference

    Methods

    • Returns the result of running UTF-8's encoder.

      Parameters

      • Optionalinput: string

        String to encode.

      Returns Uint8Array

      Encoded buffer.

    • Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination.

      Parameters

      • source: string

        String to encode.

      • destination: Uint8Array

        Array to overwrite.

      Returns TextEncoderEncodeIntoResult

      Progress.