Uint8ClampedArray Class

Uint8ClampedArray class

Represents an array of 8-bit unsigned integers clamped to 0-255; if you specified a value that is out of the range of [0,255], 0 or 255 will be set instead;

public class Uint8ClampedArray : TypedArray<byte>

Constructors

NameDescription
Uint8ClampedArray(ArrayBuffer)Initializes a new instance of the Uint8ClampedArray class.
Uint8ClampedArray(byte[])Initializes a new instance of the Uint8ClampedArray class.
Uint8ClampedArray(int)Initializes a new instance of the Uint8ClampedArray class.
Uint8ClampedArray(ArrayBuffer, int)Initializes a new instance of the Uint8ClampedArray class.
Uint8ClampedArray(ArrayBuffer, int, int)Initializes a new instance of the Uint8ClampedArray class.

Properties

NameDescription
getBuffer Gets the ArrayBuffer referenced by this instance.
getByteLength Gets the byteLength accessor property represents the length of an ArrayBuffer in bytes.
getByteOffset Gets the byteOffset from the start of referenced ArrayBuffer.
[getItem]
[setItem] Gets or sets the Byte at the specified index.
getLength Gets the length of a typed array.

Methods

NameDescription
getPlatformType()This method is used to retrieve the ECMAScript object .

Fields

NameDescription
static readonly BYTES_PER_ELEMENTThe property represents the size in bytes of each element in an typed array.

See Also