UInt32、Int32 和 Float32 的字节类型是什么?

What is the type of the bytes of UInt32, Int32 and Float32?

要将 UInt32、Int32 和 Float32 转换为字节(反之亦然),我正在使用 DataView.

我在问自己相应字节的 type 是什么:Int8 或 Uint8

我会说 Uint8 代表 Uint32,Int8 代表 Int32,但是 Float32 呢?

DataView 不会 "convert UInt32, Int32 and Float32 to bytes",它会将 JavaScript 数字转换为 UInt32、Int32 和 Float32 格式的字节。字节如何存储在 DataView 和底层 ArrayBuffer 中是一个实现细节。