File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Original file line number Diff line number Diff line change @@ -62,16 +62,18 @@ A Float32Array containing 10 values will have a `data` size starting at 42 bytes
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
- In that case, the total size of ` data ` woulb become so this may increase to 45 bytes:
65
+ In that case, the total size of ` data ` would become 45 bytes:
66
66
67
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 `
71
71
72
- Since the extension array is wrapped with its own header, there is some additional structure before this content .
72
+ The exact amount of padding depends on what data has been encoded _ before _ the TypedArray is encountered .
73
73
74
+ Since the extension array is wrapped with its own header, there is some additional structure before this content.
74
75
See the [ MessagePack spec for extensions] ( https://github.com/msgpack/msgpack/blob/master/spec.md#ext-format-family ) .
76
+
75
77
The content of a TypedArray object is inserted after the extension header.
76
78
For example, an extension where the size of the encoded array is up to (2^8)-1 bytes will be laid out like this:
77
79
You can’t perform that action at this time.
0 commit comments