SILC_STR_UI_XNSTRING
NAME
#define SILC_STR_UI_XNSTRING() ...
#define SILC_STR_UI_XNSTRING_ALLOC() ...
DESCRIPTION
Extended Unsigned string formatting. Second argument is the length of
the string.
Formatting: SILC_STR_UI_XNSTRING(unsigned char *, SilcUInt32)
Unformatting: SILC_STR_UI_XNSTRING(unsigned char **, SilcUInt32)
This type can be used to take arbitrary length string from the buffer
by sending the requested amount of bytes as argument. This differs
from *_STRING and *_NSTRING so that this doesn't try to find the
length of the data from the buffer but the length of the data is
sent as argument. This a handy way to unformat fixed length strings
from the buffer without having the length of the string formatted
in the buffer.
_ALLOC routines automatically allocates memory for the variable sent
as argument in unformatting.
|