Next: , Previous: bpipe_datatype_init_output, Up: Internal Functions


A.5.4 bpipe_datatype_raw_size

return the size (in bytes) of the raw storage requirements of a binary pipe data type.

Synopsis

     #include <bpipe/bpipe.h>
     
     
     
size_t bpipe_datatype_raw_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

return the size (in bytes) of the raw storage requirements of a binary pipe data type.

Returns

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