function arrayBufferHandler(buffers: unknown, len: number): ClockStruct[] {
let outArr: ClockStruct[] = [];
// @ts-ignore
let filterId = new Int32Array(buffers.filterId);
// @ts-ignore
let value = new Int32Array(buffers.value);
// @ts-ignore
let startNS = new Float64Array(buffers.startNS);
// @ts-ignore
let dur = new Float64Array(buffers.dur);
for (let i = 0; i < len; i++) {
outArr.push({
filterId: filterId,
value: value,
startNS: startNS,
dur: dur,
} as unknown as ClockStruct);
}
return outArr;
}
```