|
encode.cc File Reference
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "encode.h"
|
Defines |
#define | unhex_table(h) ((h >= 'A' && h <= 'F') ? 10 + h - 'A' : h - '0') |
Functions |
size_t | EncodeHexSize (size_t src_len) |
| Determine the size of the destination buffer for hex encoding.
|
void | EncodeHex (char *dst, size_t dst_len, const void *src, size_t src_len) |
| Encode binary data to ascii hex.
|
size_t | DecodeHexSize (size_t src_len) |
| Determine the size of the destination buffer for hex decoding.
|
void | DecodeHex (void *dst, size_t dst_len, const char *src, size_t src_len) |
| Decodes ascii hex to binary data.
|
Define Documentation
#define unhex_table |
( |
h |
|
) |
((h >= 'A' && h <= 'F') ? 10 + h - 'A' : h - '0')
|
|
Function Documentation
size_t EncodeHexSize |
( |
size_t |
src_len |
) |
|
|
|
Determine the size of the destination buffer for hex encoding.
Determine the size of the destination buffer for hex encoding |
void EncodeHex |
( |
char * |
dst, |
|
|
size_t |
dst_len, |
|
|
const void * |
src, |
|
|
size_t |
src_len |
|
) |
|
|
|
Encode binary data to ascii hex.
|
size_t DecodeHexSize |
( |
size_t |
src_len |
) |
|
|
|
Determine the size of the destination buffer for hex decoding.
Determine the size of the destination buffer for hex decoding |
void DecodeHex |
( |
void * |
dst, |
|
|
size_t |
dst_len, |
|
|
const char * |
src, |
|
|
size_t |
src_len |
|
) |
|
|
|
Decodes ascii hex to binary data.
|
Generated on Tue May 3 14:15:39 2005 for Player by 1.3.6
|