Next: , Previous: bpipe_datatype_copy, Up: Internal Functions


A.5.3 bpipe_datatype_init_output

Fill memory with a datatype initialization structure.

Synopsis

     #include <bpipe/bpipe.h>
     
     
     
void bpipe_datatype_init_output( void *dst, BPDataType type, size_t n );

Parameters

void *dst
the memory to init
BPDataType type
the type of the datatype
          
          
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
size_t n
the number of instances of the datatype to init

Description

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.