Portable string array reader.
More...
#include <portable_containers.h>
Portable string array reader.
| gridgain::portable::PortableStringArrayReader::PortableStringArrayReader |
( |
impl::portable::PortableReaderImpl * |
impl, |
|
|
int32_t |
id, |
|
|
int32_t |
size |
|
) |
| |
Constructor.
- Parameters
-
| impl | Reader. |
| id | Identifier. |
| size | Array size. |
| int32_t gridgain::portable::PortableStringArrayReader::GetNext |
( |
char * |
res, |
|
|
int32_t |
len |
|
) |
| |
Get next element.
- Parameters
-
| res | Array to store data to. |
| len | Expected length of string. NULL terminator will be set in case len is greater than real string length. |
- Returns
- Actual amount of elements read. If "len" argument is less than actual array size or resulting array is set to null, nothing will be written to resulting array and returned value will contain required array length. -1 will be returned in case array in stream was null.
| std::string gridgain::portable::PortableStringArrayReader::GetNext |
( |
| ) |
|
|
inline |
Get next element.
- Returns
- String.
| int32_t gridgain::portable::PortableStringArrayReader::GetSize |
( |
| ) |
const |
Get array size.
- Returns
- Size or -1 if array is NULL.
| bool gridgain::portable::PortableStringArrayReader::HasNext |
( |
| ) |
const |
Check whether next element is available for read.
- Returns
- True if available.
The documentation for this class was generated from the following files: