1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
|
.TH "jose_b64" 3 "Tue May 30 2017" "José" \" -*- nroff -*-
.ad l
.nh
.SH NAME
jose_b64 \- URL-safe Base64 Encoding & Decoding\&.
.SH SYNOPSIS
.br
.PP
.SS "Functions"
.in +1c
.ti -1c
.RI "size_t \fBjose_b64_dec\fP (const json_t *i, void *o, size_t ol)"
.br
.RI "Decodes a URL-safe Base64 JSON string to a buffer\&. "
.ti -1c
.RI "\fBjose_io_t\fP * \fBjose_b64_dec_io\fP (\fBjose_io_t\fP *next)"
.br
.RI "Creates a new IO object which performs URL-safe Base64 decoding\&. "
.ti -1c
.RI "size_t \fBjose_b64_dec_buf\fP (const void *i, size_t il, void *o, size_t ol)"
.br
.RI "Decodes a URL-safe Base64 buffer to an output buffer\&. "
.ti -1c
.RI "json_t * \fBjose_b64_dec_load\fP (const json_t *i)"
.br
.RI "Decodes a JSON string from a URL-safe Base64 JSON string\&. "
.ti -1c
.RI "json_t * \fBjose_b64_enc\fP (const void *i, size_t il)"
.br
.RI "Encodes data to a URL-safe Base64 JSON string\&. "
.ti -1c
.RI "\fBjose_io_t\fP * \fBjose_b64_enc_io\fP (\fBjose_io_t\fP *next)"
.br
.RI "Creates a new IO object which performs URL-safe Base64 encoding\&. "
.ti -1c
.RI "size_t \fBjose_b64_enc_buf\fP (const void *i, size_t il, void *o, size_t ol)"
.br
.RI "Encodes data to a URL-safe Base64 buffer\&. "
.ti -1c
.RI "json_t * \fBjose_b64_enc_dump\fP (const json_t *i)"
.br
.RI "Encodes the input JSON as a URL-safe Base64 JSON string\&. "
.in -1c
.SH "Detailed Description"
.PP
URL-safe Base64 Encoding & Decoding\&.
.SH "Function Documentation"
.PP
.SS "size_t jose_b64_dec (const json_t * i, void * o, size_t ol)"
.PP
Decodes a URL-safe Base64 JSON string to a buffer\&. If \fCo\fP is NULL, the number of output bytes necessary is returned\&.
.PP
This function will never write more than \fCol\fP bytes\&. If the output buffer is too small, an error will occur\&.
.PP
\fBParameters:\fP
.RS 4
\fIi\fP The input URL-safe Base64 JSON string\&.
.br
\fIo\fP The output buffer (may be NULL)\&.
.br
\fIol\fP The size of the output buffer\&.
.RE
.PP
\fBReturns:\fP
.RS 4
The number of bytes that were (or would be) written\&. If an error occurs, SIZE_MAX is returned\&.
.RE
.PP
.SS "\fBjose_io_t\fP* jose_b64_dec_io (\fBjose_io_t\fP * next)"
.PP
Creates a new IO object which performs URL-safe Base64 decoding\&. All data written to the returned IO object will be decoded before passing it on to the next IO object in the chain\&.
.PP
\fBParameters:\fP
.RS 4
\fInext\fP The next IO object in the chain\&.
.RE
.PP
\fBReturns:\fP
.RS 4
The new IO object or NULL on error\&.
.RE
.PP
.SS "size_t jose_b64_dec_buf (const void * i, size_t il, void * o, size_t ol)"
.PP
Decodes a URL-safe Base64 buffer to an output buffer\&. If \fCo\fP is NULL, the number of output bytes necessary is returned\&.
.PP
This function will never write more than \fCol\fP bytes\&. If the output buffer is too small, an error will occur\&.
.PP
\fBParameters:\fP
.RS 4
\fIi\fP The input URL-safe Base64 buffer\&.
.br
\fIil\fP The size of the data in the input buffer\&.
.br
\fIo\fP The output buffer\&.
.br
\fIol\fP The size of the output buffer\&.
.RE
.PP
\fBReturns:\fP
.RS 4
The number of bytes that were (or would be) written\&. If an error occurs, SIZE_MAX is returned\&.
.RE
.PP
.SS "json_t* jose_b64_dec_load (const json_t * i)"
.PP
Decodes a JSON string from a URL-safe Base64 JSON string\&.
.PP
\fBParameters:\fP
.RS 4
\fIi\fP The input URL-safe Base64 JSON string containing JSON data\&.
.RE
.PP
\fBReturns:\fP
.RS 4
The output JSON data\&.
.RE
.PP
.SS "json_t* jose_b64_enc (const void * i, size_t il)"
.PP
Encodes data to a URL-safe Base64 JSON string\&.
.PP
\fBParameters:\fP
.RS 4
\fIi\fP The input buffer\&.
.br
\fIil\fP The size of the data in the input buffer\&.
.RE
.PP
\fBReturns:\fP
.RS 4
The decoded JSON data\&. If an error occurs, NULL is returned\&.
.RE
.PP
.SS "\fBjose_io_t\fP* jose_b64_enc_io (\fBjose_io_t\fP * next)"
.PP
Creates a new IO object which performs URL-safe Base64 encoding\&. All data written to the returned IO object will be encoded before passing it on to the next IO object in the chain\&.
.PP
\fBParameters:\fP
.RS 4
\fInext\fP The next IO object in the chain\&.
.RE
.PP
\fBReturns:\fP
.RS 4
The new IO object or NULL on error\&.
.RE
.PP
.SS "size_t jose_b64_enc_buf (const void * i, size_t il, void * o, size_t ol)"
.PP
Encodes data to a URL-safe Base64 buffer\&. If \fCo\fP is NULL, the number of output bytes necessary is returned\&.
.PP
This function will never write more than \fCol\fP bytes\&. If the output buffer is too small, an error will occur\&.
.PP
\fBParameters:\fP
.RS 4
\fIi\fP The input buffer\&.
.br
\fIil\fP The size of the data in the input buffer\&.
.br
\fIo\fP The output URL-safe Base64 buffer\&.
.br
\fIol\fP The size of the output buffer\&.
.RE
.PP
\fBReturns:\fP
.RS 4
The number of bytes that were (or would be) written\&. If an error occurs, SIZE_MAX is returned\&.
.RE
.PP
.SS "json_t* jose_b64_enc_dump (const json_t * i)"
.PP
Encodes the input JSON as a URL-safe Base64 JSON string\&.
.PP
\fBParameters:\fP
.RS 4
\fIi\fP The input JSON data\&.
.RE
.PP
\fBReturns:\fP
.RS 4
The output URL-safe Base64 JSON string\&.
.RE
.PP
.SH "Author"
.PP
Generated automatically by Doxygen for José from the source code\&.
|