The function smpp34_dumpBuff( ... )
takes four
parameters and returns an integer value that describes the operation result.
A value distinct of 0 (zero) describes an operation error and a description
in text mode is stored in smpp34_strerror
.
extern int smpp34_errno; extern char smpp34_strerror[2048]; int smpp34_dumpBuf( uint8_t *dest, /* out */ int destL, /* in */ uint8_t *src, /* in */ int srcL /* in */ ) |
dest: This parameter is a buffer reference where the dumped buffer will be stored. The memory must be reserved externally, it would be dynamic or static memory, but the function is not responsable for freeing it.
destL: This integer is the lenght of the buffer (the previus buffer).
src: This pointer is a reference to the source buffer (binary buffer).
srcL: This integer is the lenght of the buffer (the previus buffer).
The Example 1 describes the use of this function.