Uint8Array

Uint8Array class

Represents an array of twos-complement 8-bit unsigned integers.

public class Uint8Array : TypedArray<byte>

Constructors

Name Description
Uint8Array(ArrayBuffer) Initializes a new instance of the Uint8Array class.
Uint8Array(byte[]) Initializes a new instance of the Uint8Array class.
Uint8Array(int) Initializes a new instance of the Uint8Array class.
Uint8Array(ArrayBuffer, int) Initializes a new instance of the Uint8Array class.
Uint8Array(ArrayBuffer, int, int) Initializes a new instance of the Uint8Array class.

Properties

Name Description
Buffer { get; } Gets the ArrayBuffer referenced by this instance.
ByteLength { get; } Gets the byteLength accessor property represents the length of an ArrayBuffer in bytes.
ByteOffset { get; } Gets the byteOffset from the start of referenced ArrayBuffer.
override Item { get; set; } Gets or sets the Byte at the specified index.
Length { get; } Gets the length of a typed array.

Methods

Name Description
virtual GetPlatformType() This method is used to retrieve the ECMAScript object .

Fields

Name Description
static readonly BYTES_PER_ELEMENT The property represents the size in bytes of each element in an typed array.

See Also