let pt1=new Float32Array([1,2])
let pt2=new Float32Array([3,4])
let status=5
let buffer_array = data3['line'];
for(let i=0;i<10000;i++){
buffer_array.set([pt1[0],pt1[1],pt2[0],pt2[1],status], i * 5);
}
function partsSums(ls) {
const result = new Int32Array(ls.length + 1);
for (let i = ls.length - 1; i > -1; i--) {
result[i] = result[i + 1] + ls[i];
}
return result;
}
<use href="#star"></use>