mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-17 19:08:09 +08:00
849ec1684a
PUBLISHED_FROM=5cd78790a03580aa23dd3d2d8b825ad449083cc2
18 lines
585 B
Markdown
18 lines
585 B
Markdown
---
|
|
title: "mg_base64_decode()"
|
|
decl_name: "mg_base64_decode"
|
|
symbol_kind: "func"
|
|
signature: |
|
|
int mg_base64_decode(const unsigned char *s, int len, char *dst);
|
|
---
|
|
|
|
Decodes base64-encoded string `s`, `len` into the destination `dst`.
|
|
The destination has to have enough space to hold the decoded buffer.
|
|
Decoding stops either when all strings have been decoded or invalid an
|
|
character appeared.
|
|
Destination is '\0'-terminated.
|
|
Returns the number of decoded characters. On success, that should be equal
|
|
to `len`. On error (invalid character) the return value is smaller then
|
|
`len`.
|
|
|