Booleans

Carbon TypeDescriptionSizenull-ValueMarker
truethe truth value true0 bytenull[t]
falsethe truth value false0 bytenull[f]
booleana three-valued value0+ bytesdedicated valuededicated value

Encoding as Field Value

Example

JSON snippet

[true, false]

A (compacted) Carbon array

[[] [t] [f] []]

Encoding as Column Value

Column Type MarkerMarker SizeValueElement SizeBlock
[B], boolean values1-bytefalse1 byte each[0]
[B], boolean values1-bytetrue1 byte each[1]
[B], boolean values1-bytenull1 byte each[2]

Example

JSON snippet

[false, true, null]

A (compacted) Carbon column-boolean.

[B](3)(3) [0][1][2]