Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Memory/CompositeBuffer.h |
Include |
#include "Memory/CompositeBuffer.h" |
Source |
/Engine/Source/Runtime/Core/Private/Memory/CompositeBuffer.cpp |
FMemoryView ViewOrCopyRange
(
uint64 Offset,
uint64 Size,
FUniqueBuffer & CopyBuffer,
TFunctionRef< FUniqueBufferSize)> Allocator
) const
Returns a view of the range if contained by one segment, otherwise a view of a copy of the range.
@note CopyBuffer is reused if large enough, and otherwise allocated when needed.
Parameter |
Description |
---|---|
Offset |
The byte offset in this buffer that the range starts at. |
Size |
The number of bytes in the range to view or copy. |
CopyBuffer |
The buffer to write the copy into if a copy is required. |
Allocator |
The optional allocator to use when the copy buffer is required. |