15 #ifndef _GRIDGAIN_PORTABLE_RAW_READER 16 #define _GRIDGAIN_PORTABLE_RAW_READER 21 #include <ignite/common/common.h> 23 #include "gridgain/impl/portable/portable_reader_impl.h" 62 int32_t ReadInt8Array(int8_t* res,
const int32_t len);
81 int32_t ReadBoolArray(
bool* res,
const int32_t len);
100 int32_t ReadInt16Array(int16_t* res,
const int32_t len);
107 uint16_t ReadUInt16();
119 int32_t ReadUInt16Array(uint16_t* res,
const int32_t len);
138 int32_t ReadInt32Array(int32_t* res,
const int32_t len);
157 int32_t ReadInt64Array(int64_t* res,
const int32_t len);
176 int32_t ReadFloatArray(
float* res,
const int32_t len);
195 int32_t ReadDoubleArray(
double* res,
const int32_t len);
214 int32_t ReadGuidArray(
Guid* res,
const int32_t len);
227 int32_t ReadString(
char* res,
const int32_t len);
236 int32_t len = ReadString(NULL, 0);
240 gridgain::impl::utils::SafeArray<char> arr(len + 1);
242 ReadString(arr.target, len + 1);
244 return std::string(arr.target);
247 return std::string();
267 int32_t
id = impl->ReadArray(&size);
283 int32_t
id = impl->ReadCollection(&typ, &size);
294 template<
typename T,
typename OutputIterator>
297 return impl->ReadCollection<T>(out);
305 template<
typename K,
typename V>
311 int32_t
id = impl->ReadMap(&typ, &size);
328 int32_t ReadCollectionSize();
338 return impl->ReadObject<T>();
342 gridgain::impl::portable::PortableReaderImpl* impl;
T ReadObject()
Read object.
Definition: portable_raw_reader.h:336
Portable raw reader.
Definition: portable_raw_reader.h:35
Global universally unique identifier (GUID).
Definition: guid.h:27
Declares portable reader and writer types for the collections.
Declares gridgain::Guid class.
Portable array reader.
Definition: portable_containers.h:291
Portable string array reader.
Definition: portable_containers.h:212
CollectionType
Portable collection types.
Definition: portable_consts.h:27
int32_t ReadCollection(OutputIterator out)
Read values and insert them to specified position.
Definition: portable_raw_reader.h:295
Portable collection reader.
Definition: portable_containers.h:359
Portable map reader.
Definition: portable_containers.h:441
std::string ReadString()
Read string from the stream.
Definition: portable_raw_reader.h:234
Declares specific portable constants.
PortableArrayReader< T > ReadArray()
Start array read.
Definition: portable_raw_reader.h:263
PortableMapReader< K, V > ReadMap()
Start map read.
Definition: portable_raw_reader.h:306
GridGain API.
Definition: cache.h:35
PortableCollectionReader< T > ReadCollection()
Start collection read.
Definition: portable_raw_reader.h:278
MapType
Portable map types.
Definition: portable_consts.h:68