Signed-off-by: hmz007 <hmz007@gmail.com> Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
4 lines
236 B
TypeScript
4 lines
236 B
TypeScript
export const int32 = new Int32Array(2);
|
|
export const float32 = new Float32Array(int32.buffer);
|
|
export const float64 = new Float64Array(int32.buffer);
|
|
export const isLittleEndian = new Uint16Array(new Uint8Array([1, 0]).buffer)[0] === 1; |