engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FIoBuffer类 参考

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

成员函数说明

◆ Release()

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.

返回
A status wrapper around the memory pointer. Even if the status is valid the pointer might still be null.

该类的文档由以下文件生成: