SNMP Manager Programmer's Guide

Reference Summary
SNMP Manager Programmer’s Guide–134249
9-40
Managing the Encoded-Packet Buffer
EBufferPreLoad()
This function sets up buffer descriptors for an allocated buffer to which you have already
written information but for which you have not initialized EBUFFER_T descriptors.
EBufferPreLoad() preserves the contents of your buffer, sets start_bp and next_bp based
on start-byte and num-bytes arguments, and sets remaining to zero:
EBufferPreLoad( {BFL_IS_DYNAMIC | BFL_IS_STATIC},
buffer, start-byte, num-bytes);
void EBufferPreload (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 byte to which start_bp should point.
num-bytes
The number of bytes of interest in the buffer following start-
byte. EBufferPreLoad() sets next_bp to point to the byte
following the last byte of interest.
flags
One of the following integers corresponding to the define you
specify in your first argument:
0 (BFL_IS_DYNAMIC)
1 (BFL_IS_STATIC)
605
ebuff
next_bpstart_bp
remaining = 0
buffp
length
ebuff
EBufferPreLoad()