SilcBufferParamType
NAME
typedef enum { ... } SilcBufferParamType;
DESCRIPTION
Buffer parameter types. These are not needed when formatting or
unformatting buffers. Use the macros such as SILC_STR_UI_CHAR and
others instead. These types may be used when describing what a
buffer looks like, and how it may be formatted and unformatted.
SOURCE
typedef enum {
SILC_PARAM_SI8_CHAR, /* Signed 8-bit char */
SILC_PARAM_UI8_CHAR, /* Unsigned 8-bit char */
SILC_PARAM_SI16_SHORT, /* Signed 16-bit int */
SILC_PARAM_UI16_SHORT, /* Unsigned 16-bit int */
SILC_PARAM_SI32_INT, /* Signed 32-bit int */
SILC_PARAM_UI32_INT, /* Unsigned 32-bit int */
SILC_PARAM_SI64_INT, /* Signed 64-bit int */
SILC_PARAM_UI64_INT, /* Unsigned 64-bit int */
SILC_PARAM_UI8_STRING, /* String (max len 8-bits)*/
SILC_PARAM_UI16_STRING, /* String (max len 16-bits) */
SILC_PARAM_UI32_STRING, /* String (max len 32-bits) */
SILC_PARAM_BUFFER, /* SilcBuffer */
/* Internal types */
SILC_PARAM_DATA, /* Binary data */
SILC_PARAM_UI8_NSTRING, /* String (max len 8-bits) */
SILC_PARAM_UI16_NSTRING, /* String (max len 16-bits) */
SILC_PARAM_UI32_NSTRING, /* String (max len 32-bits) */
SILC_PARAM_UI8_STRING_ALLOC, /* Alloc + memcpy */
SILC_PARAM_UI16_STRING_ALLOC, /* Alloc + memcpy */
SILC_PARAM_UI32_STRING_ALLOC, /* Alloc + memcpy */
SILC_PARAM_UI8_NSTRING_ALLOC, /* Alloc + memcpy */
SILC_PARAM_UI16_NSTRING_ALLOC, /* Alloc + memcpy */
SILC_PARAM_UI32_NSTRING_ALLOC, /* Alloc + memcpy */
SILC_PARAM_DATA_ALLOC, /* Alloc + memcpy */
SILC_PARAM_BUFFER_ALLOC, /* Alloc + memcpy */
SILC_PARAM_OFFSET,
SILC_PARAM_ADVANCE,
SILC_PARAM_FUNC,
SILC_PARAM_UI_XNSTRING,
SILC_PARAM_UI_XNSTRING_ALLOC,
SILC_PARAM_END
} SilcBufferParamType;
|