nlib
|
Class to apply JSON Patch (RFC-6902). More...
#include "nn/nlib/msgpack/JsonPatch.h"
Static Public Member Functions | |
static errno_t | Apply (MpObject *obj, MpObject *patch, size_t *index) noexcept |
Applies JSON Patch. If it fails, obj is restored to the state before this function was executed. More... | |
Class to apply JSON Patch (RFC-6902).
JsonPatchBuilder
or a similar method. Definition at line 70 of file JsonPatch.h.
|
staticnoexcept |
Applies JSON Patch. If it fails, obj is restored to the state before this function was executed.
[in] | obj | MpObject that corresponds to JSON that JSON Patch is applied to. |
[in] | patch | MpObject that corresponds to JSON Patch. |
[in] | index | When not NULL , contains the index that points the location where JSON Patch has failed to be applied if that failure has occurred. |
0 | Success. |
EINVAL | Indicates that obj or patch was NULL , patch was not an array or no required key was specified, or no valid operation was specified in the "op" key. |
ENOMEM | Indicates that the memory allocation failed. |
EPERM | Indicates that the test operation failed. |
ENOENT | Indicates that the location required in obj was not available in obj. |
EILSEQ | Indicates that a syntax error was found in the specified JSON Pointer. |
© 2012-2017 Nintendo Co., Ltd. All rights reserved.