class new in Git master
#include <Corrade/Utility/Json.h>
JsonTokenOffsetSize JSON token offset and size.
Together with JsonTokenData used as an input when creating a Json instance directly from individual tokens, such as when it's desirable to make externally parsed data available through a JSON-compatible interface. See Creating an instance from externally parsed tokens for more information and a detailed usage example.
Constructors, destructors, conversion operators
-
JsonTokenOffsetSize(std::
size_t offset, std:: size_t size) - Constructor.
- JsonTokenOffsetSize()
- Construct an empty token.
Function documentation
Corrade:: Utility:: JsonTokenOffsetSize:: JsonTokenOffsetSize(std:: size_t offset,
std:: size_t size)
Constructor.
Parameters | |
---|---|
offset | Token offset from the start of the string |
size | Token size |
Corrade:: Utility:: JsonTokenOffsetSize:: JsonTokenOffsetSize()
Construct an empty token.
An empty token only contains the parsed value and cannot be reparsed to a different numeric type, for example. Meant to be used in cases where the token data represent something other than a JSON, such as CBOR or various other JSON-compatible binary representations.