UNPKG
flatbuffers
Version:
latest (25.2.10)
25.2.10
25.1.24
25.1.21
24.12.23
24.3.25
24.3.7
24.3.6
23.5.26
23.5.9
23.5.8
23.3.3
23.1.21
23.1.20
23.1.4
22.12.6
22.11.23
22.10.26
22.10.25
2.0.7
2.0.6
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.12.0
1.11.0
1.10.2
1.10.1
1.10.0
1.9.0
1.8.0
1.7.0
1.6.0
1.5.0
0.1.0
0.0.1
Memory Efficient Serialization Library
google.github.io/flatbuffers/
google/flatbuffers
flatbuffers
/
ts
/
utils.ts
4 lines
•
236 B
text/typescript
View Raw
1
2
3
4
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
;