cpxserializer

Serializer interface.


struct cpxserializer {
   int (CPXPUBLIC *addbyte) (CPXSERIALIZERptr ser, CPXBYTE b);
   int (CPXPUBLIC *addshort) (CPXSERIALIZERptr ser, CPXSHORT s);
   int (CPXPUBLIC *addint) (CPXSERIALIZERptr ser, CPXINT i);
   int (CPXPUBLIC *addlong) (CPXSERIALIZERptr ser, CPXLONG l);
   int (CPXPUBLIC *addfloat) (CPXSERIALIZERptr ser, float f);
   int (CPXPUBLIC *adddouble) (CPXSERIALIZERptr ser, double d);
   int (CPXPUBLIC *addbytes) (CPXSERIALIZERptr ser, CPXLONG cnt, CPXBYTE const *b);
   int (CPXPUBLIC *addshorts) (CPXSERIALIZERptr ser, CPXLONG cnt, CPXSHORT const *s);
   int (CPXPUBLIC *addints) (CPXSERIALIZERptr ser, CPXLONG cnt, CPXINT const *i);
   int (CPXPUBLIC *addlongs) (CPXSERIALIZERptr ser, CPXLONG cnt, CPXLONG const *l);
   int (CPXPUBLIC *addfloats) (CPXSERIALIZERptr ser, CPXLONG cnt, float const *d);
   int (CPXPUBLIC *adddoubles) (CPXSERIALIZERptr ser, CPXLONG cnt, double const *d);
}
    
This structure defines the API for serializers. A serializer is a group of function pointers that add data to a serializer. Serializers are used to transfer data in a platform-independent manner between remote master and worker.
Value Description
int addbyte(CPXSERIALIZERptr ser, CPXBYTE b)
Writes a single, 8-bit, signed integer to this serializer.
int addshort(CPXSERIALIZERptr ser, CPXSHORT s)
Writes a single, 16-bit, signed integer to this serializer.
int addint(CPXSERIALIZERptr ser, CPXINT i)
Writes a single, 32-bit, signed integer to this serializer.
int addlong(CPXSERIALIZERptr ser, CPXLONG l)
Writes a single, 64-bit, signed integer to this serializer.
int addfloat(CPXSERIALIZERptr ser, float f)
Writes a single, IEEE single-precision number to this serializer.
int adddouble(CPXSERIALIZERptr ser, double d)
Writes a single, IEEE double-precision number to this serializer.
int addbytes(CPXSERIALIZERptr ser, CPXLONG cnt, CPXBYTE const *b)
Writes an array of 8-bit, signed integers to this serializer.
int addshorts(CPXSERIALIZERptr ser, CPXLONG cnt, CPXSHORT const *s)
Writes an array of 16-bit, signed integers to this serializer.
int addints(CPXSERIALIZERptr ser, CPXLONG cnt, CPXINT const *i)
Writes an array of 32-bit, signed integers to this serializer.
int addlongs(CPXSERIALIZERptr ser, CPXLONG cnt, CPXLONG const *l)
Writes an array of 64-bit, signed integers to this serializer.
int addfloats(CPXSERIALIZERptr ser, CPXLONG cnt, float const *f)
Writes an array of IEEE single-precision numbers to this serializer.
int adddoubles(CPXSERIALIZERptr ser, CPXLONG cnt, double const *d)
Writes an array of IEEE double-precision numbers to this serializer.