By default Uint8Array
, Uint16Array
and Uint32Array
classes keep zeros as it’s values, so you don’t need any complex filling techniques, just:
var ary = new Uint8Array(10);
all elements of array ary
will be zeros by default.
By default Uint8Array
, Uint16Array
and Uint32Array
classes keep zeros as it’s values, so you don’t need any complex filling techniques, just:
var ary = new Uint8Array(10);
all elements of array ary
will be zeros by default.