_getSizeFromSdfValueType#
Fully qualified name: usd_optimize::_getSizeFromSdfValueType
- size_t usd_optimize::_getSizeFromSdfValueType(
- const PXR_NS::SdfValueTypeName &value,
Get the underlying datatype size of an SdfValueType.
Given an SdfValueTypeName, tries to return the result of sizeof() on the underlying C++ data type. Not all types are supported, so some may return zero (for example strings).
- Parameters:
value – The type to get a size from
- Returns:
The size of the C++ data type, or zero if an unsupported type