SNMP Manager Programmer's Guide
Encoding and Decoding Packets
SNMP Manager Programmer’s Guide–134249
6-10
EBufferPreLoad()
next-ptr
identifies where to return the value of next_bp.
buffer
a pointer to the descriptor structure for the buffer for which you want to retrieve 
next_bp.
The following call to EBufferNext() retrieves the location of next_bp in a buffer 
descriptor structure named ebuff:
OCTET_T *next-pointer;
EBUFFER_T ebuff;
next-pointer = EBufferNext(&ebuff);
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.  
BFL_IS_DYNAMIC 
BFL_IS_STATIC
are Manager Services defines indicating whether you allocated dynamic or static 
memory, respectively, for the buffer.
buffer
a pointer to the descriptor structure for the buffer for which you want descriptors 
initialized.
start-byte
identifies the byte to which start_bp should point.
num-bytes
is 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.
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);










