Changeset 8588fa4fce895b6710b5200bf4d2a5e0205e1b59 for src/utils/noit_b64.h
- Timestamp:
- 08/15/08 01:40:31 (5 years ago)
- git-parent:
- Files:
-
- src/utils/noit_b64.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
src/utils/noit_b64.h
r08d383c r8588fa4 37 37 #include "noit_defines.h" 38 38 39 /*! \fn int noit_b64_decode(const char * in, size_t in_sz, unsigned char *out, size_t out_sz)39 /*! \fn int noit_b64_decode(const char *src, size_t src_len, unsigned char *dest, size_t dest_len) 40 40 \brief Decode a base64 encoded input buffer into the provided output buffer. 41 \param inThe buffer containing the encoded content.42 \param in_szThe size (in bytes) of the encoded data.43 \param out The destination buffer to which the function will produce.44 \param out_szThe size of the destination buffer.45 \return The size of the decoded output. Returns zero is out_szis too small.41 \param src The buffer containing the encoded content. 42 \param src_len The size (in bytes) of the encoded data. 43 \param dest The destination buffer to which the function will produce. 44 \param dest_len The size of the destination buffer. 45 \return The size of the decoded output. Returns zero is dest_len is too small. 46 46 47 47 noit_b64_decode decodes input until an the entire input is consumed or until an invalid base64 character is encountered. 48 48 */ 49 49 API_EXPORT(int) noit_b64_decode(const char *, size_t, unsigned char *, size_t); 50 /*! \fn int noit_b64_encode(const unsigned char * in, size_t in_sz, char *out, size_t out_sz)50 /*! \fn int noit_b64_encode(const unsigned char *src, size_t src_len, char *dest, size_t dest_len) 51 51 \brief Encode raw data as base64 encoded output into the provided buffer. 52 \param inThe buffer containing the raw data.53 \param in_szThe size (in bytes) of the raw data.54 \param out The destination buffer to which the function will produce.55 \param out_szThe size of the destination buffer.52 \param src The buffer containing the raw data. 53 \param src_len The size (in bytes) of the raw data. 54 \param dest The destination buffer to which the function will produce. 55 \param dest_len The size of the destination buffer. 56 56 \return The size of the encoded output. Returns zero is out_sz is too small. 57 57 */
