23 #ifndef _IGNITE_BINARY_RAW_WRITER
24 #define _IGNITE_BINARY_RAW_WRITER
28 #include <ignite/common/common.h>
30 #include "ignite/impl/binary/binary_writer_impl.h"
57 void WriteInt8(int8_t val);
65 void WriteInt8Array(
const int8_t* val, int32_t len);
72 void WriteBool(
bool val);
80 void WriteBoolArray(
const bool* val, int32_t len);
87 void WriteInt16(int16_t val);
95 void WriteInt16Array(
const int16_t* val, int32_t len);
102 void WriteUInt16(uint16_t val);
110 void WriteUInt16Array(
const uint16_t* val, int32_t len);
117 void WriteInt32(int32_t val);
125 void WriteInt32Array(
const int32_t* val, int32_t len);
132 void WriteInt64(int64_t val);
140 void WriteInt64Array(
const int64_t* val, int32_t len);
147 void WriteFloat(
float val);
155 void WriteFloatArray(
const float* val, int32_t len);
162 void WriteDouble(
double val);
170 void WriteDoubleArray(
const double* val, int32_t len);
177 void WriteGuid(
const Guid& val);
185 void WriteGuidArray(
const Guid* val, int32_t len);
192 void WriteString(
const char* val);
200 void WriteString(
const char* val, int32_t len);
209 WriteString(val.c_str());
232 int32_t
id = impl->WriteArray();
257 int32_t
id = impl->WriteCollection(typ);
269 template<
typename InputIterator>
282 template<
typename InputIterator>
285 impl->WriteCollection(first, last, typ);
294 template<
typename K,
typename V>
306 template<
typename K,
typename V>
309 int32_t
id = impl->WriteMap(typ);
322 impl->WriteObject<T>(val);
326 ignite::impl::binary::BinaryWriterImpl* impl;
BinaryArrayWriter< T > WriteArray()
Start array write.
Definition: binary_raw_writer.h:230
Undefined.
Definition: binary_consts.h:40
void WriteCollection(InputIterator first, InputIterator last)
Write values in interval [first, last).
Definition: binary_raw_writer.h:270
Declares specific binary constatants.
Declares binary reader and writer types for the collections.
Declares ignite::Guid class.
void WriteCollection(InputIterator first, InputIterator last, CollectionType typ)
Write values in interval [first, last).
Definition: binary_raw_writer.h:283
CollectionType
Binary collection types.
Definition: binary_consts.h:35
BinaryCollectionWriter< T > WriteCollection(CollectionType typ)
Start collection write.
Definition: binary_raw_writer.h:255
Undefined.
Definition: binary_consts.h:71
Binary collection writer.
Definition: binary_containers.h:135
Binary collection writer.
Definition: binary_containers.h:92
Binary string array writer.
Definition: binary_containers.h:40
BinaryCollectionWriter< T > WriteCollection()
Start collection write.
Definition: binary_raw_writer.h:243
Binary raw writer.
Definition: binary_raw_writer.h:42
void WriteString(const std::string &val)
Write string.
Definition: binary_raw_writer.h:207
Global universally unique identifier (GUID).
Definition: guid.h:35
BinaryMapWriter< K, V > WriteMap()
Start map write.
Definition: binary_raw_writer.h:295
void WriteObject(T val)
Write object.
Definition: binary_raw_writer.h:320
Binary map writer.
Definition: binary_containers.h:178
BinaryMapWriter< K, V > WriteMap(MapType typ)
Start map write.
Definition: binary_raw_writer.h:307
Apache Ignite API.
Definition: binary_consts.h:28
MapType
Binary map types.
Definition: binary_consts.h:66