23 #ifndef _IGNITE_BINARY_BINARY_RAW_READER 24 #define _IGNITE_BINARY_BINARY_RAW_READER 29 #include <ignite/common/common.h> 31 #include "ignite/impl/binary/binary_reader_impl.h" 85 int32_t ReadInt8Array(int8_t* res, int32_t len);
104 int32_t ReadBoolArray(
bool* res, int32_t len);
123 int32_t ReadInt16Array(int16_t* res, int32_t len);
130 uint16_t ReadUInt16();
142 int32_t ReadUInt16Array(uint16_t* res, int32_t len);
161 int32_t ReadInt32Array(int32_t* res, int32_t len);
180 int32_t ReadInt64Array(int64_t* res, int32_t len);
199 int32_t ReadFloatArray(
float* res, int32_t len);
218 int32_t ReadDoubleArray(
double* res, int32_t len);
237 int32_t ReadGuidArray(
Guid* res, int32_t len);
256 int32_t ReadDateArray(
Date* res, int32_t len);
275 int32_t ReadTimestampArray(
Timestamp* res, int32_t len);
294 int32_t ReadTimeArray(
Time* res, int32_t len);
307 int32_t ReadString(
char* res, int32_t len);
330 int32_t len = ReadString(NULL, 0);
334 dst.resize(static_cast<size_t>(len));
336 ReadString(&dst[0], len);
359 int32_t
id = impl->ReadArray(&size);
375 int32_t
id = impl->ReadCollection(&typ, &size);
386 template<
typename T,
typename OutputIterator>
389 return impl->ReadCollection<T>(out);
397 template<
typename K,
typename V>
403 int32_t
id = impl->ReadMap(&typ, &size);
420 int32_t ReadCollectionSize();
430 return impl->ReadObject<T>();
445 if (impl->SkipIfNull())
448 res = impl->ReadObject<T>();
455 ignite::impl::binary::BinaryReaderImpl* impl;
460 #endif //_IGNITE_BINARY_BINARY_RAW_READER Timestamp type.
Definition: timestamp.h:37
Declares specific binary constatants.
Date type.
Definition: date.h:35
Declares binary reader and writer types for the collections.
Binary string array reader.
Definition: binary_containers.h:297
Binary map reader.
Definition: binary_containers.h:561
BinaryCollectionReader< T > ReadCollection()
Start collection read.
Definition: binary_raw_reader.h:370
Binary collection reader.
Definition: binary_containers.h:468
Declares ignite::Guid class.
Declares ignite::Timestamp class.
BinaryMapReader< K, V > ReadMap()
Start map read.
Definition: binary_raw_reader.h:398
int32_t ReadCollection(OutputIterator out)
Read values and insert them to specified position.
Definition: binary_raw_reader.h:387
BinaryArrayReader< T > ReadArray()
Start array read.
Definition: binary_raw_reader.h:355
Binary array reader.
Definition: binary_containers.h:389
bool TryReadObject(T &res)
Try read object.
Definition: binary_raw_reader.h:443
Type
Definition: binary_consts.h:35
T ReadObject()
Read object.
Definition: binary_raw_reader.h:428
Type
Definition: binary_consts.h:69
Time type.
Definition: time.h:35
std::string ReadString()
Read string from the stream.
Definition: binary_raw_reader.h:314
Global universally unique identifier (GUID).
Definition: guid.h:36
void ReadString(std::string &dst)
Read string from the stream.
Definition: binary_raw_reader.h:328
Apache Ignite API.
Definition: cache.h:48
Declares ignite::Date class.
Binary raw reader.
Definition: binary_raw_reader.h:56