Zserio C++17 runtime library
0.5.0
Built for Zserio 2.17.0
|
#include <JsonDecoder.h>
Public Member Functions | |
DecoderResult (size_t numRead, const ALLOC &allocator) | |
template<typename T > | |
DecoderResult (size_t numRead, T &&decodedValue, const ALLOC &allocator) | |
template<typename T > | |
DecoderResult (size_t numRead, T &&decodedValue, bool overflow, const ALLOC &allocator) | |
Public Attributes | |
size_t | numReadChars |
BasicAny< ALLOC > | value |
bool | integerOverflow |
Decoder result value.
Definition at line 29 of file JsonDecoder.h.
|
inline |
Constructor used for decoder failure.
numRead | Number of processed characters. |
allocator | Allocator to use. |
Definition at line 37 of file JsonDecoder.h.
|
inline |
Constructor for decoder success.
numRead | Number of processed characters. |
decodedValue | Value decoded from JSON stream. |
allocator | Allocator to use. |
Definition at line 51 of file JsonDecoder.h.
|
inline |
Constructor used for integer decoder.
numRead | Number of processed characters. |
decodedValue | Value decoded from JSON stream. |
overflow | True in case of integer overflow. |
allocator | Allocator to use. |
Definition at line 66 of file JsonDecoder.h.
bool zserio::BasicJsonDecoder< ALLOC >::DecoderResult::integerOverflow |
True if decoded value was bigger than UINT64_MAX or was not in interval <INT64_MIN, INT64_MAX>.
Definition at line 74 of file JsonDecoder.h.
size_t zserio::BasicJsonDecoder< ALLOC >::DecoderResult::numReadChars |
Number of processed characters.
Definition at line 72 of file JsonDecoder.h.
BasicAny<ALLOC> zserio::BasicJsonDecoder< ALLOC >::DecoderResult::value |
Decoded value. Empty on failure.
Definition at line 73 of file JsonDecoder.h.