FIoBuffer::Release

Relinquishes control of the internal buffer to the caller and removes it from the [FIoBuffer](API\Runtime\Core\IO\FIoBuffer).

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/IO/IoDispatcher.h

Include

#include "IO/IoDispatcher.h"

Source

/Engine/Source/Runtime/Core/Private/IO/IoBuffer.cpp

Syntax

TIoStatusOr< uint8 * > Release()

Remarks

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.

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.

Returns

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss