Uint8ClampedArray constructor

init

Initializes a new instance of the Uint8ClampedArray class.

def __init__(self, length):
    ...
ParameterTypeDescription
lengthintThe length (number of elements).

init

Initializes a new instance of the Uint8ClampedArray class.

def __init__(self, data):
    ...
ParameterTypeDescription
databytesThe array data.

init

Initializes a new instance of the Uint8ClampedArray class.

def __init__(self, buffer):
    ...
ParameterTypeDescription
bufferArrayBufferThe data buffer.

init

Initializes a new instance of the Uint8ClampedArray class.

def __init__(self, buffer, byte_offset):
    ...
ParameterTypeDescription
bufferArrayBufferThe data buffer.
byte_offsetintThe byte offset.

init

Initializes a new instance of the Uint8ClampedArray class.

def __init__(self, buffer, byte_offset, length):
    ...
ParameterTypeDescription
bufferArrayBufferThe data buffer.
byte_offsetintThe byte offset.
lengthintThe length.

See Also