SNMP Manager Programmer's Guide
Reference Summary
SNMP Manager Programmer’s Guide–134249
9-42
Managing the Encoded-Packet Buffer
EBufferSetup()
This function initializes buffer descriptors for a buffer you have obtained static or
dynamic memory for, setting start_bp and next_bp to point to the first byte in the buffer
and the value of remaining to the number of bytes you allocated:
EBufferStart()
This function returns the value of start_bp, the EBUFFER_T descriptor that points to the
first byte of interest in a buffer:
EBufferSetup( {BFL_IS_DYNAMIC | BFL_IS_STATIC},
buffer, start-byte, num-bytes);
void EBufferSetup (unsigned int flags,
EBUFFER_T *buffer,
OCTET_T *start-byte,
ALENGTH_T num-bytes);
BFL_IS_DYNAMIC
BFL_IS_STATIC
Manager Services defines indicating whether you allocated
dynamic or static memory, respectively, for the buffer.
buffer
A pointer to the descriptor structure you want initialized.
start-byte
The location of the buffer.
num-bytes
The number of bytes you allocated for the buffer.
flags
One of the following integers corresponding to the define you
specify in your first argument:
0 (BFL_IS_DYNAMIC)
1 (BFL_IS_STATIC)
604
ebuff
start_bp
next_bp
remaining
903
remaining
start_bp next_bp
(EBufferStart())