UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MemoryView.h File Reference
#include "CoreTypes.h"
#include "HAL/PlatformString.h"
#include "Math/NumericLimits.h"
#include "Math/UnrealMathUtility.h"
#include "Memory/MemoryFwd.h"
#include "Templates/AndOrNot.h"
#include "Templates/EnableIf.h"
#include "Templates/Identity.h"
#include "Templates/PointerIsConvertibleFromTo.h"
#include "Templates/UnrealTemplate.h"
#include "Traits/IsContiguousContainer.h"
#include <initializer_list>
#include <type_traits>

Go to the source code of this file.

Classes

class  TMemoryView< DataType >
 

Functions

template<typename DataType >
constexpr TMemoryView< DataType > operator+ (const TMemoryView< DataType > &View, uint64 Offset)
 
template<typename DataType >
constexpr TMemoryView< DataType > operator+ (uint64 Offset, const TMemoryView< DataType > &View)
 
constexpr TMemoryView< voidMakeMemoryView (void *Data, uint64 Size)
 
constexpr TMemoryView< const voidMakeMemoryView (const void *Data, uint64 Size)
 
template<typename DataType , typename DataEndType >
auto MakeMemoryView (DataType *Data, DataEndType *DataEnd)
 
template<typename T >
constexpr TMemoryView< const voidMakeMemoryView (std::initializer_list< typename TIdentity< T >::Type > List)
 
template<typename ContainerType >
constexpr auto MakeMemoryView (ContainerType &&Container)
 

Function Documentation

◆ MakeMemoryView() [1/5]

constexpr TMemoryView< const void > MakeMemoryView ( const void Data,
uint64  Size 
)
inlineconstexpr

Make a non-owning const view of Size bytes starting at Data.

◆ MakeMemoryView() [2/5]

template<typename ContainerType >
constexpr auto MakeMemoryView ( ContainerType &&  Container)
inlineconstexpr

Make a non-owning view of the memory of the contiguous container.

◆ MakeMemoryView() [3/5]

template<typename DataType , typename DataEndType >
auto MakeMemoryView ( DataType *  Data,
DataEndType DataEnd 
)
inline

Make a non-owning view starting at Data and ending at DataEnd.

◆ MakeMemoryView() [4/5]

template<typename T >
constexpr TMemoryView< const void > MakeMemoryView ( std::initializer_list< typename TIdentity< T >::Type >  List)
inlineconstexpr

Make a non-owning view of the memory of the initializer list.

This overload is only available when the element type does not need to be deduced.

◆ MakeMemoryView() [5/5]

constexpr TMemoryView< void > MakeMemoryView ( void Data,
uint64  Size 
)
inlineconstexpr

Make a non-owning mutable view of Size bytes starting at Data.

◆ operator+() [1/2]

template<typename DataType >
constexpr TMemoryView< DataType > operator+ ( const TMemoryView< DataType > &  View,
uint64  Offset 
)
inlineconstexpr

Advances the start of the view by an offset, which is clamped to stay within the view.

◆ operator+() [2/2]

template<typename DataType >
constexpr TMemoryView< DataType > operator+ ( uint64  Offset,
const TMemoryView< DataType > &  View 
)
inlineconstexpr

Advances the start of the view by an offset, which is clamped to stay within the view.