SNMP Manager Programmer's Guide

Reference Summary
SNMP Manager Programmer’s Guide–134249
9-41
Managing the Encoded-Packet Buffer
EBufferRemaining()
This function returns the value of the EBUFFER_T buffer descriptor named
remaining, which indicates the number of unused bytes in the buffer:
EBufferReset()
This function resets the buffer descriptors for an initialized and allocated buffer so that
start_bp and next_bp point to the first byte in the buffer and remaining is assigned the
number of bytes you allocated:
bytes-left = EBufferRemaining(buffer);
ALENGTH_T EBufferRemaining(EBUFFER_T *buffer);
bytes-left
An integer indicating the number of unused bytes in the buffer.
buffer
A pointer to the descriptor structure from which you want to
retrieve the number of bytes still available.
EBufferReset(buffer);
void EBufferReset(EBUFFER_T *buffer);
buffer
A pointer to the descriptor structure you want to reinitialize.
902
remaining
start_bp next_bp
EBufferRemaining()
604
ebuff
start_bp
next_bp
remaining