mirror of
https://github.com/jwetzell/osc-js.git
synced 2026-08-10 17:53:44 +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');
|
||||
}
|
||||
|
||||
|
||||
|
||||
const view = new DataView(new ArrayBuffer(8));
|
||||
buffer.subarray(0,8).forEach((byte, index)=>{
|
||||
view.setUint8(index,byte)
|
||||
})
|
||||
buffer.subarray(0, 8).forEach((byte, index) => {
|
||||
view.setUint8(index, byte);
|
||||
});
|
||||
|
||||
return [view.getBigInt64(0), buffer.subarray(8)];
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user