sizeofTTvalue
sizeofTTvalue is a naming convention used in libraries that define a TTValue, a variant type capable of holding multiple primitive types and composite data. The function or macro returns the number of bytes required to store a TTValue instance in a contiguous representation, or the serialized form, depending on the library's convention. It is distinct from the in-memory size of the TTValue object (for example, the compile-time sizeof(TTValue) in C/C++) because TTValue often stores payloads in dynamically allocated memory or uses variable-length encodings.
Typical behavior: for simple types, the result equals the fixed type size plus any small header; for
Implementation notes: usually implemented as a switch on the internal type tag, summing the sizes of scalar
Usage: used during serialization, network transfer, or pre-allocation when packing a TTValue into a buffer. It
Considerations: size is not a fixed property across all TTValue instances; dynamic content can change with