MbufGet()函数

Synopsis

Get data from a buffer and place it in a user-supplied array.

Format

void MbufGet(SrcBufId, UserArrayPtr)

MIL_ID SrcBufId;

Source buffer identifier

void *UserArrayPtr;

Destination user array

Description

This function copies data from a specified MIL source buffer to a user-supplied array.

The SrcBufId parameter specifies the identifier of the source buffer.

The UserArrayPtr parameter specifies the address of the user array in which to copy source buffer data. Ensure that the user array is large enough to accommodate the data from the source buffer. MbufGet assumes that the array is of the same data type and size as the source buffer.

Note, for multi-band buffers MbufGet behaves like MbufGetColor(SrcBufId, M_PLANAR, M_ALL_BAND, UserArrayPtr). Refer to MbufGetColor for more details.

See also

MbufGet1d, MbufGet2d, MbufGetColor, MbufPut, MbufPut1d, MbufPut2d, MbufPutColor