One byte per element: 0 or 1, normalized by the decoder (§4.4).
OptionalmodeWhich destination this target sets — BulkMode.Bool, the only one it can be — stated so the decoder does not work it out again for every array of every message. Optional, and an assertion when present: see ArrayTarget and BulkMode for what it asserts and what it gives up.
A
booleanarray's destination: one byte per element,0or1.It carries no bound, and that is the whole reason it is a shape of its own rather than a IntegerArrayTarget.typed
Uint8Array. §4.4 gives a boolean no width bound — every non-zero wire value istrue— so there is no interval to state and nothing for the width check to compare. A raw store would be wrong twice over: 256 would mask to0and turntrueintofalse. The decoder NORMALIZES instead, writing1for any non-zero, which is also the only value §4.4 lets an encoder emit back — so a filled destination re-encodes canonically with no conversion step in between.