Go to the source code of this file.
|
size_t | UA_calcSizeJsonInternal (const void *src, const UA_DataType *type, const UA_String *namespaces, size_t namespaceSize, const UA_String *serverUris, size_t serverUriSize, UA_Boolean useReversible) |
|
UA_StatusCode | UA_encodeJsonInternal (const void *src, const UA_DataType *type, uint8_t **bufPos, const uint8_t **bufEnd, const UA_String *namespaces, size_t namespaceSize, const UA_String *serverUris, size_t serverUriSize, UA_Boolean useReversible) |
|
UA_StatusCode | writeJsonObjStart (CtxJson *ctx) |
|
UA_StatusCode | writeJsonObjElm (CtxJson *ctx, const char *key, const void *value, const UA_DataType *type) |
|
UA_StatusCode | writeJsonObjEnd (CtxJson *ctx) |
|
UA_StatusCode | writeJsonArrStart (CtxJson *ctx) |
|
UA_StatusCode | writeJsonArrElm (CtxJson *ctx, const void *value, const UA_DataType *type) |
|
UA_StatusCode | writeJsonArrEnd (CtxJson *ctx) |
|
UA_StatusCode | writeJsonKey (CtxJson *ctx, const char *key) |
|
UA_StatusCode | writeJsonCommaIfNeeded (CtxJson *ctx) |
|
UA_StatusCode | writeJsonNull (CtxJson *ctx) |
|
status | encodeJsonInternal (const void *src, const UA_DataType *type, CtxJson *ctx) |
|
UA_StatusCode | decodeFields (CtxJson *ctx, ParseCtx *parseCtx, DecodeEntry *entries, size_t entryCount) |
|
UA_StatusCode | lookAheadForKey (const char *search, CtxJson *ctx, ParseCtx *parseCtx, size_t *resultIndex) |
|
UA_StatusCode | tokenize (ParseCtx *parseCtx, CtxJson *ctx, const UA_ByteString *src, size_t tokensSize) |
|
UA_Boolean | isJsonNull (const CtxJson *ctx, const ParseCtx *parseCtx) |
|
◆ UA_JSON_MAXTOKENCOUNT
#define UA_JSON_MAXTOKENCOUNT 2048 |
This Source Code Form is subject to the terms of the Mozilla Public License, v.
2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright 2014-2017 (c) Fraunhofer IOSB (Author: Julius Pfrommer) Copyright 2018 (c) Fraunhofer IOSB (Author: Lukas Meling)
Definition at line 22 of file ua_types_encoding_json.h.
◆ UA_JSON_ENCODING_MAX_RECURSION
#define UA_JSON_ENCODING_MAX_RECURSION 100 |
◆ encodeJsonSignature
◆ decodeJsonSignature
◆ UA_calcSizeJsonInternal()
size_t UA_calcSizeJsonInternal |
( |
const void * | src, |
|
|
const UA_DataType * | type, |
|
|
const UA_String * | namespaces, |
|
|
size_t | namespaceSize, |
|
|
const UA_String * | serverUris, |
|
|
size_t | serverUriSize, |
|
|
UA_Boolean | useReversible ) |
Returns the number of bytes the value src takes in json encoding.
Returns zero if an error occurs.
◆ UA_encodeJsonInternal()
Encodes the scalar value described by type to json encoding.
- Parameters
-
src | The value. Must not be NULL. |
type | The value type. Must not be NULL. |
bufPos | Points to a pointer to the current position in the encoding buffer. Must not be NULL. |
bufEnd | Points to a pointer to the end of the encoding buffer (encoding always stops before *buf_end). Must not be NULL. |
namespaces | An array of namespaces |
namespaceSize | The size of the namespaces array |
serverUris | An array of serverUris |
serverUriSize | The size of the serverUris array |
useReversible | preserve datatypes in json encoding |
- Returns
- Returns a statuscode whether encoding succeeded.
◆ writeJsonObjStart()
◆ writeJsonObjElm()
◆ writeJsonObjEnd()
◆ writeJsonArrStart()
◆ writeJsonArrElm()
◆ writeJsonArrEnd()
◆ writeJsonKey()
◆ writeJsonCommaIfNeeded()
◆ writeJsonNull()
◆ encodeJsonInternal()
◆ decodeFields()
◆ lookAheadForKey()
◆ tokenize()
◆ isJsonNull()
◆ encodeJsonJumpTable
Expose the jump tables and some methods for PubSub JSON decoding.
◆ decodeJsonJumpTable