Next: bpipe_datatype_write, Previous: bpipe_datatype_raw_size, Up: Internal Functions [Contents]
Determine the size (in bytes) of the internal storage requirements of a binary pipe data type.
#include <bpipe/bpipe.h> size_t bpipe_datatype_size(BPDataType type);
BPDataType type
the data type
Possible values for a
BPDataType
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
Determine the size (in bytes) of the internal storage requirements of a binary pipe data type.
It returns the size in bytes of the internal storage space required for an instance of the data. This includes any structure padding. If the requested type doesn’t exist, it returns ‘0’.