Binary string array writer.
More...
#include <binary_containers.h>
Binary string array writer.
Can be used to write array of strings one by one.
Use Write() method to write array string by string, then finilize the writing by calling Close() method. Once the Close() method have been called, instance is not usable and will throw an IgniteError on any subsequent attempt to use it.
◆ BinaryStringArrayWriter()
ignite::binary::BinaryStringArrayWriter::BinaryStringArrayWriter |
( |
impl::binary::BinaryWriterImpl * |
impl, |
|
|
int32_t |
id |
|
) |
| |
Constructor.
Internal call. Should not be used by user.
- Parameters
-
impl | Writer implementation. |
id | Identifier. |
◆ Close()
void ignite::binary::BinaryStringArrayWriter::Close |
( |
| ) |
|
Close the writer.
This method should be called to finilize writing of the array.
- Exceptions
-
◆ Write() [1/3]
void ignite::binary::BinaryStringArrayWriter::Write |
( |
const char * |
val | ) |
|
Write null-terminated string.
- Parameters
-
val | Null-terminated character sequence to write. |
- Exceptions
-
◆ Write() [2/3]
void ignite::binary::BinaryStringArrayWriter::Write |
( |
const char * |
val, |
|
|
int32_t |
len |
|
) |
| |
Write string.
- Parameters
-
val | String to write. |
len | String length in bytes. |
- Exceptions
-
◆ Write() [3/3]
void ignite::binary::BinaryStringArrayWriter::Write |
( |
const std::string & |
val | ) |
|
|
inline |
Write string.
- Parameters
-
- Exceptions
-
The documentation for this class was generated from the following files: