ArrayBuffer constructor

init

Initializes a new instance of the ArrayBuffer class.

def __init__(self, length):
    ...
ParameterTypeDescription
lengthintThe size, in bytes, of the array buffer to create.

init

Initializes a new instance of the ArrayBuffer class.

def __init__(self, data):
    ...
ParameterTypeDescription
databytesThe raw binary data.

See Also