This PR adds ByteSize() function in TypeInfo interface, which is used to compute extra data size of inlined registers.
Context
Inlined registers are treated as element and its encoded size must be known at runtime to enforce slab size limits. Since inlined registers are root slabs with extra data, encoded extra data size needs to be computed.
[x] Targeted PR against main branch
[x] Linked to Github issue with discussion and accepted design OR link to spec that describes this work
Updates #292
Description
This PR adds
ByteSize()
function inTypeInfo
interface, which is used to compute extra data size of inlined registers.Context
Inlined registers are treated as element and its encoded size must be known at runtime to enforce slab size limits. Since inlined registers are root slabs with extra data, encoded extra data size needs to be computed.
main
branchFiles changed
in the Github PR explorer