package
0.0.0-20231106081012-aadb80c4968f
Repository: https://github.com/oleiade/xk6-encoding.git
Documentation: pkg.go.dev
# Functions
IsInstanceOf returns true if the given value is an instance of the given constructor This uses the technique described in https://github.com/dop251/goja/issues/379#issuecomment-1164441879.
IsTypedArray returns true if the given value is an instance of a Typed Array.
New returns a pointer to a new RootModule instance.
NewError returns a new Error instance.
NewTextDecoder returns a new TextDecoder object instance that will generate a string from a byte stream with a specific encoding.
NewTextEncoder returns a new TextEncoder object instance that will generate a byte stream with UTF-8 encoding.
# Constants
ArrayBufferConstructor is the name of the ArrayBufferConstructor constructor.
BigInt64ArrayConstructor is the name of the BigInt64ArrayConstructor constructor.
BigUint64ArrayConstructor is the name of the BigUint64ArrayConstructor constructor.
DataViewConstructor is the name of the DataView constructor.
Float32ArrayConstructor is the name of the Float32ArrayConstructor constructor.
Float64ArrayConstructor is the name of the Float64ArrayConstructor constructor.
Int16ArrayConstructor is the name of the Int16ArrayConstructor constructor.
Int32ArrayConstructor is the name of the Int32ArrayConstructor constructor.
Int8ArrayConstructor is the name of the Int8ArrayConstructor constructor.
RangeError is thrown if the value of label is unknown, or is one of the values leading to a 'replacement' decoding algorithm ("iso-2022-cn" or "iso-2022-cn-ext").
TypeError is thrown if the value if the Decoder fatal option is set and the input data cannot be decoded.
Uint16ArrayConstructor is the name of the Uint16ArrayConstructor constructor.
Uint32ArrayConstructor is the name of the Uint32ArrayConstructor constructor.
Uint8ArrayConstructor is the name of the Uint8ArrayConstructor constructor.
Uint8ClampedArrayConstructor is the name of the Uint8ClampedArrayConstructor constructor.
UTF16BEEncodingFormat is the encoding format for utf-16be.
UTF16LEEncodingFormat is the encoding format for utf-16le.
UTF8EncodingFormat is the encoding format for utf-8.
# Structs
Error represents an encoding error.
No description provided by the author
No description provided by the author
TextDecoder represents a decoder for a specific text encoding, such as UTF-8, UTF-16, ISO-8859-2, etc.
TextEncoder represents an encoder that will generate a byte stream with UTF-8 encoding.
# Type aliases
EncodingName is a type alias for the name of an encoding.
ErrorName is a type alias for the name of an encoding error.
JSType is a string representing a JavaScript type.