Provides serialization methods for primitive types,a arrays of primitive types, Portable, IdentifiedDataSerializable and custom serializables.
More...
#include <ObjectDataOutput.h>
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::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::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 |
( |
long |
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 ASCII 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