Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Memory/MemoryFwd.h |
Include |
#include "Memory/MemoryFwd.h" |
template<typename DataType>
class TMemoryView
A non-owning view of a contiguous region of memory.
Prefer to use the aliases FMemoryView or FMutableMemoryView over this type.
Functions that modify a view clamp sizes and offsets to always return a sub-view of the input.
Name | Description | |
---|---|---|
|
TMemoryView() |
Construct an empty view. |
|
TMemoryView ( |
Construct a view of by copying a view with compatible const/volatile qualifiers. |
|
TMemoryView ( |
Construct a view of InSize bytes starting at InData. |
|
TMemoryView ( |
Construct a view starting at InData and ending at InDataEnd. |
Name | Description | ||
---|---|---|---|
|
CompareBytes ( |
Returns whether the bytes of this view are equal or less/greater than the bytes of the other view. |
|
|
Contains ( |
Returns whether this view fully contains the other view. |
|
|
CopyFrom ( |
Copies bytes from the input view into this view, and returns the remainder of this view. |
|
|
EqualBytes ( |
Returns whether the bytes of this views are equal to the bytes of the other view. |
|
|
constexpr bo... |
Equals ( |
Returns whether the data pointers and sizes of this view and the other view are equal. |
|
constexpr Da... |
GetData() |
Returns a pointer to the start of the view. |
|
DataType ... |
GetDataEnd() |
Returns a pointer to the end of the view. |
|
constexpr ui... |
GetSize() |
Returns the number of bytes in the view. |
|
Intersects ( |
Returns whether this view intersects the other view. |
|
|
constexpr bo... |
IsEmpty() |
Returns whether the view has a size of 0 regardless of its data pointer. |
|
constexpr TM... |
Left ( |
Returns the left-most part of the view by taking the given number of bytes from the left. |
|
constexpr TM... |
LeftChop ( |
Returns the left-most part of the view by chopping the given number of bytes from the right. |
|
constexpr vo... |
LeftChopInline ( |
Modifies the view by chopping the given number of bytes from the right. |
|
constexpr vo... |
LeftInline ( |
Modifies the view to be the given number of bytes from the left. |
|
Mid |
Returns the middle part of the view by taking up to the given number of bytes from the given position. |
|
|
MidInline |
Modifies the view to be the middle part by taking up to the given number of bytes from the given offset. |
|
|
constexpr vo... |
Reset() |
Resets to an empty view. |
|
Right ( |
Returns the right-most part of the view by taking the given number of bytes from the right. |
|
|
RightChop ( |
Returns the right-most part of the view by chopping the given number of bytes from the left. |
|
|
RightChopInline ( |
Modifies the view by chopping the given number of bytes from the left. |
|
|
RightInline ( |
Modifies the view to be the given number of bytes from the right. |
Name | Description | ||
---|---|---|---|
|
constexpr bo... |
operator!= ( |
Returns whether the data pointers and sizes of this view and the other view are not equal. |
|
constexpr TM... |
operator+= ( |
Advances the start of the view by an offset, which is clamped to stay within the view. |
|
constexpr bo... |
operator== ( |
Returns whether the data pointers and sizes of this view and the other view are equal. |
Name |
Description |
---|---|
ByteType |