IMemoryBufferByteAccess::GetBuffer method
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for