Skip to main content
FRAMES NO FRAMES

Class IloCplex::Deserializer

Definition file: ilcplex/ilocplexi.h
Map of IloCplex::DeserializerIloCplex::DeserializerIloCplex::Deserializer

A class to de-serialize data. Specifically, this class de-serializes data that was serialized by an instance of the class Serializer. It is also compatible with the serialization or de-serialization performed by the Callable Library (C API) routines CPXXserializercreate or CPXXdeserializercreate.

See also CPXXserializercreate documented in the Reference Manual of the Callable Library (C API).

See also CPXXdeserializercreate documented in the Reference Manual of the Callable Library (C API).

See Also:

Method Summary
public Deserializer(void const * data, CPXLONG len)
public voidget(double * d, CPXLONG cnt)
public voidget(float * f, CPXLONG cnt)
public voidget(CPXLONG * l, CPXLONG cnt)
public voidget(CPXINT * i, CPXLONG cnt)
public voidget(CPXSHORT * s, CPXLONG cnt)
public voidget(CPXBYTE * b, CPXLONG cnt)
public ~Deserializer()
Method Detail

Deserializer

public Deserializer(void const * data, CPXLONG len)

Creates a new de-serializer. The de-serializer de-serializes data from the memory block starting at data and extending for len bytes. The class will not make a copy of that memory block. It assumes that the memory block is valid throughout the lifetime of this instance.

Parameters:

data
Start of the memory block to deserialize.
len
Number of bytes stored at data.

~Deserializer

public ~Deserializer()

Destructor


get

public void get(double * d, CPXLONG cnt)

De-serializes cnt IEEE single-precision floating-point numbers and stores them in d.


get

public void get(float * f, CPXLONG cnt)

De-serializes cnt IEEE single-precision floating-point numbers and stores them in f.


get

public void get(CPXLONG * l, CPXLONG cnt)

De-serializes cnt 64-bit, signed integers and stores them in l.


get

public void get(CPXINT * i, CPXLONG cnt)

De-serializes cnt 32-bit, signed integers and stores them in i.


get

public void get(CPXSHORT * s, CPXLONG cnt)

De-serializes cnt 16-bit, signed integers and stores them in s.


get

public void get(CPXBYTE * b, CPXLONG cnt)

De-serializes cnt 8-bit, signed integers and stores them in b.