Navigation
Unreal Engine C++ API Reference > Runtime > Core > Memory > FCompositeBuffer > ViewOrCopyRange
References
Module | Core |
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
) const
Remarks
Returns a view of the range if contained by one segment, otherwise a view of a copy of the range.
CopyBuffer is reused if large enough, and otherwise allocated when needed.
Parameters
Name | 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. |