Hazelcast C++ Client
 All Classes Functions Variables Enumerations Pages
Public Member Functions | List of all members
hazelcast::client::serialization::ObjectDataOutput Class Reference

Provides serialization methods for primitive types,a arrays of primitive types, Portable, IdentifiedDataSerializable and custom serializables. More...

#include <ObjectDataOutput.h>

Public Member Functions

 ObjectDataOutput (pimpl::DataOutput &dataOutput, pimpl::PortableContext &portableContext)
 Internal API Constructor.
 
 ObjectDataOutput ()
 Internal API Constructor.
 
std::auto_ptr< std::vector
< byte > > 
toByteArray ()
 
void write (const std::vector< byte > &bytes)
 Writes all the bytes in array to stream. More...
 
void writeBoolean (bool value)
 
void writeByte (int value)
 
void writeBytes (const byte *bytes, unsigned int len)
 
void writeShort (int value)
 
void writeChar (int value)
 
void writeInt (int value)
 
void writeLong (int64_t value)
 
void writeFloat (float value)
 
void writeDouble (double value)
 
void writeUTF (const std::string *value)
 
void writeByteArray (const std::vector< byte > *value)
 
void writeCharArray (const std::vector< char > *value)
 
void writeBooleanArray (const std::vector< bool > *value)
 
void writeShortArray (const std::vector< short > *value)
 
void writeIntArray (const std::vector< int > *value)
 
void writeLongArray (const std::vector< long > *value)
 
void writeFloatArray (const std::vector< float > *value)
 
void writeDoubleArray (const std::vector< double > *value)
 
void writeUTFArray (const std::vector< std::string * > *strings)
 
void writeData (const pimpl::Data *value)
 
template<typename T >
void writeObject (const Portable *object)
 
template<typename T >
void writeObject (const IdentifiedDataSerializable *object)
 
template<typename T >
void writeObject (const void *serializable)
 
template<typename T >
void writeObject (const byte *object)
 
template<typename T >
void writeObject (const bool *object)
 
template<typename T >
void writeObject (const char *object)
 
template<typename T >
void writeObject (const short *object)
 
template<typename T >
void writeObject (const int *object)
 
template<typename T >
void writeObject (const long *object)
 
template<typename T >
void writeObject (const float *object)
 
template<typename T >
void writeObject (const double *object)
 
template<typename T >
void writeObject (const std::string *object)
 

Detailed Description

Provides serialization methods for primitive types,a arrays of primitive types, Portable, IdentifiedDataSerializable and custom serializables.

For custom serialization

See Also
Serializer

Member Function Documentation

std::auto_ptr< std::vector< byte > > hazelcast::client::serialization::ObjectDataOutput::toByteArray ( )
Returns
copy of internal byte array
void hazelcast::client::serialization::ObjectDataOutput::write ( const std::vector< byte > &  bytes)

Writes all the bytes in array to stream.

Parameters
bytesto be written
void hazelcast::client::serialization::ObjectDataOutput::writeBoolean ( bool  value)
Parameters
valuethe bool value to be written
void hazelcast::client::serialization::ObjectDataOutput::writeBooleanArray ( const std::vector< bool > *  value)
Parameters
valuethe boolean values to be written
void hazelcast::client::serialization::ObjectDataOutput::writeByte ( int  value)
Parameters
valuethe byte value to be written
void hazelcast::client::serialization::ObjectDataOutput::writeByteArray ( const std::vector< byte > *  value)
Parameters
valuethe bytes to be written
void hazelcast::client::serialization::ObjectDataOutput::writeBytes ( const byte *  bytes,
unsigned int  len 
)
Parameters
bytesThe data bytes to be written
lenNumber of bytes to write
void hazelcast::client::serialization::ObjectDataOutput::writeChar ( int  value)
Parameters
valuethe char value to be written
void hazelcast::client::serialization::ObjectDataOutput::writeCharArray ( const std::vector< char > *  value)
Parameters
valuethe characters to be written
void hazelcast::client::serialization::ObjectDataOutput::writeData ( const pimpl::Data *  value)
Parameters
valuethe data value to be written
void hazelcast::client::serialization::ObjectDataOutput::writeDouble ( double  value)
Parameters
valuethe double value to be written
void hazelcast::client::serialization::ObjectDataOutput::writeDoubleArray ( const std::vector< double > *  value)
Parameters
valuethe double array value to be written
void hazelcast::client::serialization::ObjectDataOutput::writeFloat ( float  value)
Parameters
valuethe float value to be written
void hazelcast::client::serialization::ObjectDataOutput::writeFloatArray ( const std::vector< float > *  value)
Parameters
valuethe float array value to be written
void hazelcast::client::serialization::ObjectDataOutput::writeInt ( int  value)
Parameters
valuethe int value to be written
void hazelcast::client::serialization::ObjectDataOutput::writeIntArray ( const std::vector< int > *  value)
Parameters
valuethe int array value to be written
void hazelcast::client::serialization::ObjectDataOutput::writeLong ( int64_t  value)
Parameters
valuethe long value to be written
void hazelcast::client::serialization::ObjectDataOutput::writeLongArray ( const std::vector< long > *  value)
Parameters
valuethe short array value to be written
template<typename T >
void hazelcast::client::serialization::ObjectDataOutput::writeObject ( const Portable object)
inline
Parameters
objectPortable object to be written
See Also
Portable
Exceptions
IOException
template<typename T >
void hazelcast::client::serialization::ObjectDataOutput::writeObject ( const IdentifiedDataSerializable object)
inline
Parameters
objectIdentifiedDataSerializable object to be written
See Also
IdentifiedDataSerializable
Exceptions
IOException
template<typename T >
void hazelcast::client::serialization::ObjectDataOutput::writeObject ( const void *  serializable)
inline
Parameters
objectcustom serializable object to be written
See Also
Serializer
Exceptions
IOException
void hazelcast::client::serialization::ObjectDataOutput::writeShort ( int  value)
Parameters
valuethe short value to be written
void hazelcast::client::serialization::ObjectDataOutput::writeShortArray ( const std::vector< short > *  value)
Parameters
valuethe short array value to be written
void hazelcast::client::serialization::ObjectDataOutput::writeUTF ( const std::string *  value)
Parameters
valuethe UTF string value to be written
void hazelcast::client::serialization::ObjectDataOutput::writeUTFArray ( const std::vector< std::string * > *  strings)
Parameters
stringsthe array of strings to be serialized

The documentation for this class was generated from the following files: