mirror of
https://github.com/jwetzell/osc-js.git
synced 2026-08-26 17:29:00 +00:00
npm run format:write
This commit is contained in:
@@ -254,12 +254,10 @@ export const oscTypeConverterMap: { [key: string]: OSCTypeConverter } = {
|
|||||||
throw new Error('osc int64 must be at least 8 bytes');
|
throw new Error('osc int64 must be at least 8 bytes');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const view = new DataView(new ArrayBuffer(8));
|
const view = new DataView(new ArrayBuffer(8));
|
||||||
buffer.subarray(0,8).forEach((byte, index)=>{
|
buffer.subarray(0, 8).forEach((byte, index) => {
|
||||||
view.setUint8(index,byte)
|
view.setUint8(index, byte);
|
||||||
})
|
});
|
||||||
|
|
||||||
return [view.getBigInt64(0), buffer.subarray(8)];
|
return [view.getBigInt64(0), buffer.subarray(8)];
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user