sizeOf

open fun sizeOf(value: T): SizeEstimate

Estimates the encoded size of value for buffer pre-allocation.