Provides serialization methods for primitive types,a arrays of primitive types, Portable, IdentifiedDataSerializable and custom serializables.
More...
#include <ObjectDataOutput.h>
|
| 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) |
|
Provides serialization methods for primitive types,a arrays of primitive types, Portable, IdentifiedDataSerializable and custom serializables.
For custom serialization
- See Also
- Serializer
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
-
void hazelcast::client::serialization::ObjectDataOutput::writeBoolean |
( |
bool |
value | ) |
|
- Parameters
-
value | the bool value to be written |
void hazelcast::client::serialization::ObjectDataOutput::writeBooleanArray |
( |
const std::vector< bool > * |
value | ) |
|
- Parameters
-
value | the boolean values to be written |
void hazelcast::client::serialization::ObjectDataOutput::writeByte |
( |
int |
value | ) |
|
- Parameters
-
value | the byte value to be written |
void hazelcast::client::serialization::ObjectDataOutput::writeByteArray |
( |
const std::vector< byte > * |
value | ) |
|
- Parameters
-
value | the bytes to be written |
void hazelcast::client::serialization::ObjectDataOutput::writeBytes |
( |
const byte * |
bytes, |
|
|
unsigned int |
len |
|
) |
| |
- Parameters
-
bytes | The data bytes to be written |
len | Number of bytes to write |
void hazelcast::client::serialization::ObjectDataOutput::writeChar |
( |
int |
value | ) |
|
- Parameters
-
value | the char value to be written |
void hazelcast::client::serialization::ObjectDataOutput::writeCharArray |
( |
const std::vector< char > * |
value | ) |
|
- Parameters
-
value | the characters to be written |
void hazelcast::client::serialization::ObjectDataOutput::writeData |
( |
const pimpl::Data * |
value | ) |
|
- Parameters
-
value | the data value to be written |
void hazelcast::client::serialization::ObjectDataOutput::writeDouble |
( |
double |
value | ) |
|
- Parameters
-
value | the double value to be written |
void hazelcast::client::serialization::ObjectDataOutput::writeDoubleArray |
( |
const std::vector< double > * |
value | ) |
|
- Parameters
-
value | the double array value to be written |
void hazelcast::client::serialization::ObjectDataOutput::writeFloat |
( |
float |
value | ) |
|
- Parameters
-
value | the float value to be written |
void hazelcast::client::serialization::ObjectDataOutput::writeFloatArray |
( |
const std::vector< float > * |
value | ) |
|
- Parameters
-
value | the float array value to be written |
void hazelcast::client::serialization::ObjectDataOutput::writeInt |
( |
int |
value | ) |
|
- Parameters
-
value | the int value to be written |
void hazelcast::client::serialization::ObjectDataOutput::writeIntArray |
( |
const std::vector< int > * |
value | ) |
|
- Parameters
-
value | the int array value to be written |
void hazelcast::client::serialization::ObjectDataOutput::writeLong |
( |
int64_t |
value | ) |
|
- Parameters
-
value | the long value to be written |
void hazelcast::client::serialization::ObjectDataOutput::writeLongArray |
( |
const std::vector< long > * |
value | ) |
|
- Parameters
-
value | the short array value to be written |
template<typename T >
void hazelcast::client::serialization::ObjectDataOutput::writeObject |
( |
const Portable * |
object | ) |
|
|
inline |
template<typename T >
void hazelcast::client::serialization::ObjectDataOutput::writeObject |
( |
const void * |
serializable | ) |
|
|
inline |
- Parameters
-
object | custom serializable object to be written |
- See Also
- Serializer
- Exceptions
-
void hazelcast::client::serialization::ObjectDataOutput::writeShort |
( |
int |
value | ) |
|
- Parameters
-
value | the short value to be written |
void hazelcast::client::serialization::ObjectDataOutput::writeShortArray |
( |
const std::vector< short > * |
value | ) |
|
- Parameters
-
value | the short array value to be written |
void hazelcast::client::serialization::ObjectDataOutput::writeUTF |
( |
const std::string * |
value | ) |
|
- Parameters
-
value | the UTF string value to be written |
void hazelcast::client::serialization::ObjectDataOutput::writeUTFArray |
( |
const std::vector< std::string * > * |
strings | ) |
|
- Parameters
-
strings | the array of strings to be serialized |
The documentation for this class was generated from the following files:
- hazelcast/include/hazelcast/client/serialization/ObjectDataOutput.h
- hazelcast/src/hazelcast/client/serialization/ObjectDataOutput.cpp