X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwrap-json.md;h=97dc2f5042bfaab26f713e1efba26196f38e52e2;hb=99720bff24a6cda13357dde624c4822c9a96d20e;hp=92940f1a7b918f9d95a3ddb3f5d36b2ef240b0aa;hpb=1d550bd6d5caad377a22425cb9f346b011cf527b;p=src%2Fapp-framework-binder.git diff --git a/src/wrap-json.md b/src/wrap-json.md index 92940f1a..97dc2f50 100644 --- a/src/wrap-json.md +++ b/src/wrap-json.md @@ -66,6 +66,15 @@ arguments. : Like `+#` but the length argument is of type size\_t. +`y` (byte array) \[const uint8_t \*, size\_t\] + +: Convert the byte array whose length is given to + its base64url string representation. + +`Y` (byte array) \[const uint8_t \*, size\_t\] + +: Like 'y' but output is base64. + `n` (null) : Output a JSON null value. No argument is consumed. @@ -183,6 +192,16 @@ type whose address should be passed. : Convert a JSON string to a pointer to a null terminated UTF-8 string and its length. +`y` (byte array) \[uint8_t \*\*, size\_t \*\] + +: Convert an input string base64url encoded to its + byte array representation. The result and its length + are stored. The returned buffer must be freed by the caller. + +`Y` (byte array) \[uint8_t \*\*, size\_t \*\] + +: Like 'y' but input is base64. + `n` (null) : Expect a JSON null value. Nothing is extracted.