mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 17:57:25 +00:00
5 lines
288 B
TypeScript
5 lines
288 B
TypeScript
export const int32: Int32Array = new Int32Array(2);
|
|
export const float32: Float32Array = new Float32Array(int32.buffer);
|
|
export const float64: Float64Array = new Float64Array(int32.buffer);
|
|
export const isLittleEndian: boolean =
|
|
new Uint16Array(new Uint8Array([1, 0]).buffer)[0] === 1;
|