Changeset 8588fa4fce895b6710b5200bf4d2a5e0205e1b59

Show
Ignore:
Timestamp:
08/15/08 01:40:31 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1218764431 +0000
git-parent:

[a770666670c0036387c484fd9dc90622817cb34b]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1218764431 +0000
Message:

make the parameters match the C code, refs #39

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/utils/noit_b64.h

    r08d383c r8588fa4  
    3737#include "noit_defines.h" 
    3838 
    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
    4040    \brief Decode a base64 encoded input buffer into the provided output buffer. 
    41     \param in The buffer containing the encoded content. 
    42     \param in_sz The size (in bytes) of the encoded data. 
    43     \param out The destination buffer to which the function will produce. 
    44     \param out_sz The size of the destination buffer. 
    45     \return The size of the decoded output.  Returns zero is out_sz is 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. 
    4646     
    4747    noit_b64_decode decodes input until an the entire input is consumed or until an invalid base64 character is encountered. 
    4848 */ 
    4949API_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
    5151    \brief Encode raw data as base64 encoded output into the provided buffer. 
    52     \param in The buffer containing the raw data. 
    53     \param in_sz The size (in bytes) of the raw data. 
    54     \param out The destination buffer to which the function will produce. 
    55     \param out_sz The 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. 
    5656    \return The size of the encoded output.  Returns zero is out_sz is too small. 
    5757 */