Next: , Previous: bpipe_datatype_raw_size, Up: Internal Functions


A.5.5 bpipe_datatype_size

Determine the size (in bytes) of the internal storage requirements of a binary pipe data type.

Synopsis

     #include <bpipe/bpipe.h>
     
     
     
size_t bpipe_datatype_size(BPDataType type);

Parameters

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

Description

Determine the size (in bytes) of the internal storage requirements of a binary pipe data type.

Returns

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’.