SNMP Manager Programmer's Guide
Reference Summary
SNMP Manager Programmer’s Guide–134249
9-37
Managing the Encoded-Packet Buffer
EBufferClean()
This function releases dynamic memory previously allocated for an EBUFFER_T buffer
and calls EBufferInitialize() to set all the buffer descriptors to zero:
EBufferClone()
This function copies an EBUFFER_T buffer into a second EBUFFER_T buffer it
dynamically allocates, duplicating the contents of the source buffer and its buffer
descriptors in the destination buffer:
EBufferClean(buffer);
void EBufferClean(EBUFFER_T *buffer);
buffer
A pointer to the descriptor structure for the buffer for which
memory is to be released.
rcode = EBufferClone(source-buffer, dest-buffer);
int EBufferClone(EBUFFER_T *source-buffer,
EBUFFER_T *dest-buffer);
603
start_bp
next_bp
remaining = 0
ebuff
606
buffsrc
remaining
start_bp next_bp
buffdest
remaining
start_bp next_bp
EBufferClone()