Marshalling Basic Data Types

HPC++ provides the marshalling and unmarhshalling of the following basic data types

int

char

float

double

short

long

The java data type 'byte' is equivalent to 'hpcxx_byte' on the HPC++ side. The user needs to provide the appropriate pack() and unpack() functions. The data type 'hpcxx_byte' is defined to be an object with just one field, an 'unsigned char'.

The java data type 'bool' is defined as 'boolType' which is a typedef to an hpcxx_byte. The value 1 indicates true and everything else indicates false.