Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets an IMemoryBuffer as an array of bytes.
Syntax
HRESULT GetBuffer(
[out] BYTE **value,
[out] UINT32 *capacity
);
Parameters
-
value [out]
-
A pointer to a byte array containing the buffer data.
-
capacity [out]
-
The number of bytes in the returned array
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
When MemoryBuffer::Close is called, the code using this buffer should set the value pointer to null.
See also