SNMP Manager Programmer's Guide
Reference Summary
SNMP Manager Programmer’s Guide–134249
9-38
Managing the Encoded-Packet Buffer
EBufferInitialize()
This function initializes the buffer descriptors of an EBUFFER_T buffer to zero. Use
this function to initialize your encoded-packet buffer if you do not allocate memory for
the buffer before calling an encoding function:
EBufferNext()
This function returns the value of next_bp, the descriptor that points to the next unused
byte in an EBUFFER_T buffer:
rcode
An integer describing the outcome of the call. A value of 0
indicates success; a value of -1 indicates failure.
source-buffer
A pointer to the descriptor structure for the buffer you want to
duplicate.
dest-buffer
A pointer to the descriptor structure for the buffer you want
created.
EBufferInitialize(buffer);
void EBufferInitialize(EBUFFER_T *buffer);
buffer
A pointer to the descriptor structure for the buffer you want
initialized.
nxt-ptr = EBufferNext(buffer);
OCTET_T* EbufferNext(EBUFFER_T *buffer);
603
start_bp
next_bp
remaining = 0
ebuff
901
remaining
start_bp next_bp
(EBufferNext())