Next: , Previous: bpipe_data_dup, Up: Utility Functions   [Contents]


A.4.4 bpipe_datatype_init

Fill memory with a datatype initialization structure.

Synopsis

#include <bpipe/bpipe.h>

void bpipe_datatype_init(
  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 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.