Next: bpipe_datatype_size, Previous: bpipe_datatype_init_output, Up: Internal Functions
return the size (in bytes) of the raw storage requirements of a binary pipe data type.
#include <bpipe/bpipe.h>size_t bpipe_datatype_raw_size(BPDataType type);
BPDataType type
- the data type
Possible values for aBPDataType
are as follows:BPDType_char
,BPDType_double
,BPDType_int
,BPDType_uint
,BPDType_DVector2
,BPDType_DVector3
,BPDType_IVector2
,BPDType_IVector3
,BPDType_UIVector2
,BPDType_UIVector3
,BPDType_DComplex
,BPDType_DCVector2
,BPDType_DCVector3
return the size (in bytes) of the raw storage requirements of a binary pipe data type.
It returns the size in bytes of the raw storage space required for an instance of the data. It does not include any structure padding; just the total space directly used by the structure elements. If the requested type doesn't exist, it returns ‘0’.