packed property
PackedCell
get
packed
Returns a fixed-layout packed cell tuple for fast comparisons.
Layout:
word0: content kind/width plus low content bitsword1: content high bitsword2: canonicalized style identityword3: canonicalized link identity
Implementation
PackedCell get packed {
final contentLo = _contentValue & _contentPackLoMask;
final contentHi = _contentValue >>> _contentValueBits;
return PackedCell(
word0:
(_contentKind & _cellContentKindMask) |
((_width & _cellWidthMask) << _cellWidthShift) |
(contentLo << _packedContentShift),
word1: contentHi,
word2: _styleId,
word3: _linkId,
);
}