Reference to buffer data used by I/O dispatcher APIs 更多...
#include <IoDispatcher.h>
Public 成员函数 | |
| UE_NODISCARD CORE_API TIoStatusOr< uint8 * > | Release () |
| Relinquishes control of the internal buffer to the caller and removes it from the FIoBuffer. 更多... | |
Reference to buffer data used by I/O dispatcher APIs
| UE_NODISCARD CORE_API TIoStatusOr< uint8 * > FIoBuffer::Release | ( | ) |
Relinquishes control of the internal buffer to the caller and removes it from the FIoBuffer.
This allows the caller to assume ownership of the internal data and prevent it from being deleted along with the FIoBuffer.
NOTE: It is only valid to call this if the FIoBuffer currently owns the internal memory allocation, as the point of the call is to take ownership of it. If the FIoBuffer is only wrapping the allocation then it will return a failed FIoStatus instead.