project_files/frontlib/base64/base64.h
changeset 8260 83d85e32c713
parent 7316 f7b49b2c5d84
equal deleted inserted replaced
8258:c14b27abe452 8260:83d85e32c713
    22 # include <stddef.h>
    22 # include <stddef.h>
    23 
    23 
    24 /* Get bool. */
    24 /* Get bool. */
    25 # include <stdbool.h>
    25 # include <stdbool.h>
    26 
    26 
    27 /* This uses that the expression (n+(k-1))/k means the smallest
    27 /*! This uses that the expression (n+(k-1))/k means the smallest
    28    integer >= n/k, i.e., the ceiling of n/k.  */
    28    integer >= n/k, i.e., the ceiling of n/k.  */
    29 # define BASE64_LENGTH(inlen) ((((inlen) + 2) / 3) * 4)
    29 # define BASE64_LENGTH(inlen) ((((inlen) + 2) / 3) * 4)
    30 
    30 
    31 struct base64_decode_context
    31 struct base64_decode_context
    32 {
    32 {