Next: bpipe_datatype_raw_size, Previous: bpipe_datatype_copy, Up: Internal Functions
Fill memory with a datatype initialization structure.
#include <bpipe/bpipe.h>void bpipe_datatype_init_output( 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 for an output image of a field. The default initialization is the appropriate value of ‘0’. It is somewhat inefficient, as the compacted version of the initialization structures should be created at compile time.