25 static inline size_t b64_size (
size_t bloblen)
28 return 1 + (bloblen + 3 - 1) / 3 * 4;
int b64_encode(const void *blob, size_t bloblen, buffer_t *b64)
Encode a binary blob in base64.
int b64_decode(const char *b64, buffer_t *blob)
Decode a base64 encoded blob.
String Buffer Operations.