Next: bpipe_datatype_name, Previous: bpipe_data_dup, Up: Utility Functions
Fill memory with a datatype initialization structure.
#include <bpipe/bpipe.h>void bpipe_datatype_init( void *dst, BPDataType type, size_t n );
void *dst
- the memory to init
BPDataType type
- the type of the datatype
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
size_t n
- the number of instances of the datatype to init
This routine will replicate a default datatype initialization structure throughout a region of memory. The default initialization is the appropriate value of ‘0’. This routine is useful for intializaing a core image of a data packet field to a known state.