TextEncoder

fmgp.typings.std.TextEncoder
trait TextEncoder extends StObject, TextEncoderCommon

TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays.

Attributes

Graph
Supertypes
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any
Show all
Known subtypes
class TextEncoder

Members list

Value members

Concrete methods

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

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

Attributes

def encode(input: String): Uint8Array

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.

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.

Attributes

Inherited methods

Attributes

Inherited from:
Object

Attributes

Inherited from:
Object

Attributes

Inherited from:
Object

Attributes

Inherited from:
Object
def valueOf(): Any

Attributes

Inherited from:
Object

Inherited fields

Returns "utf-8".

Returns "utf-8".

Attributes

Inherited from:
TextEncoderCommon