@@ -56,15 +56,15 @@ Note that the length of `data`, and therefore the value of `YYYYYYYY_YYYYYYYY` i
56
56
57
57
A Float32Array containing 10 values will have a ` data ` size starting at 42 bytes if there is no alignment:
58
58
59
- - 1 byte of ` artype ` = ` 0x?? `
59
+ - 1 byte of ` artype ` = ` 0x09 `
60
60
- 1 byte of ` AAAAAAAA ` = 0
61
61
- 0 bytes of ` align `
62
62
- 40 bytes of ` vals `
63
63
64
64
A Float32Array should be aligned on 4-byte boundaries, so there may need to be up to 3 bytes of padding.
65
65
In that case, the total size of ` data ` woulb become so this may increase to 45 bytes:
66
66
67
- - 1 byte of ` artype ` = ` 0x?? `
67
+ - 1 byte of ` artype ` = ` 0x09 `
68
68
- 1 byte of ` AAAAAAAA ` = 3
69
69
- 3 bytes of ` align `
70
70
- 40 bytes of ` vals `
@@ -91,7 +91,7 @@ So to put the entire example of a 10-entry Float32Array together, it would be re
91
91
92
92
```
93
93
+--------+--------+--------+--------+--------+========+========+
94
- | 0xc7 | 0x2D | type | 0x?? | 0x03 |3 zeros | vals |
94
+ | 0xc7 | 0x2D | type | 0x09 | 0x03 |3 zeros | vals |
95
95
+--------+--------+--------+--------+--------+========+========+
96
96
```
97
97
@@ -100,7 +100,7 @@ Where:
100
100
- ` 0xc7 ` is the MessagePack type for ` ext 8 `
101
101
- ` 0x2D ` is 45, the length of the TypedArray payload described above
102
102
- ` type ` is the extension type number
103
- - ` 0x?? ` is the ` artype ` number for Float32Array
103
+ - ` 0x09 ` is the ` artype ` number for Float32Array
104
104
- ` 0x03 ` is the number of alignment bytes
105
105
- 3 zeros are required for alignment
106
106
- ` vals ` contains the actual floating-point data
0 commit comments