TRingBuffer::Compact

Shift all elements so that the front pointer's location in memory is less than the back pointer's.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/RingBuffer.h

Include

#include "Containers/RingBuffer.h"

Syntax

TArrayView< T > Compact()

Remarks

Shift all elements so that the front pointer's location in memory is less than the back pointer's. Returns a temporary ArrayView for the RingBuffer's elements; the returned ArrayView will be invalid after the next write operation on the RingBuffer.

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