Class Memory
Inheritance
Assembly: FlaxEngine.dll
File: Engine/Core/Memory/Memory.h
Syntax
public class Memory
Methods
ConstructItem(T* dst)
Constructs the item in the memory.
The optimized version is noop.
Declaration
public static TEnableIf<!TIsTriviallyConstructible<T>::Value>::Type ConstructItem(T* dst)
Parameters
T
dst
The address of the memory location to construct. |
Returns
TEnableIf<!TIsTriviallyConstructible<T>::Value>::Type
|
Type Parameters
typename T
|
ConstructItems(T* dst, const U* src, int32 count)
Constructs the range of items in the memory from the set of arguments.
The optimized version uses low-level memory copy.
Declaration
public static TEnableIf<!TIsBitwiseConstructible<T, U>::Value>::Type ConstructItems(T* dst, const U* src, int32 count)
Parameters
T
dst
The address of the first memory location to construct. |
U
src
The address of the first memory location to pass to the constructor. |
int32
count
The number of element to construct. Can be equal 0. |
Returns
TEnableIf<!TIsBitwiseConstructible<T, U>::Value>::Type
|
Type Parameters
typename T
|
typename U
|
ConstructItems(T* dst, int32 count)
Constructs the range of items in the memory.
The optimized version is noop.
Declaration
public static TEnableIf<!TIsTriviallyConstructible<T>::Value>::Type ConstructItems(T* dst, int32 count)
Parameters
T
dst
The address of the first memory location to construct. |
int32
count
The number of element to construct. Can be equal 0. |
Returns
TEnableIf<!TIsTriviallyConstructible<T>::Value>::Type
|
Type Parameters
typename T
|
CopyItems(T* dst, const T* src, int32 count)
Copies the range of items using the assignment operator.
The optimized version is low-level memory copy.
Declaration
public static TEnableIf<!TIsTriviallyCopyAssignable<T>::Value>::Type CopyItems(T* dst, const T* src, int32 count)
Parameters
T
dst
The address of the first memory location to start assigning to. |
T
src
The address of the first memory location to assign from. |
int32
count
The number of element to assign. Can be equal 0. |
Returns
TEnableIf<!TIsTriviallyCopyAssignable<T>::Value>::Type
|
Type Parameters
typename T
|
DestructItem(T* dst)
Destructs the item in the memory.
The optimized version is noop.
Declaration
public static TEnableIf<!TIsTriviallyDestructible<T>::Value>::Type DestructItem(T* dst)
Parameters
T
dst
The address of the memory location to destruct. |
Returns
TEnableIf<!TIsTriviallyDestructible<T>::Value>::Type
|
Type Parameters
typename T
|
DestructItems(T* dst, int32 count)
Destructs the range of items in the memory.
The optimized version is noop.
Declaration
public static TEnableIf<!TIsTriviallyDestructible<T>::Value>::Type DestructItems(T* dst, int32 count)
Parameters
T
dst
The address of the first memory location to destruct. |
int32
count
The number of element to destruct. Can be equal 0. |
Returns
TEnableIf<!TIsTriviallyDestructible<T>::Value>::Type
|
Type Parameters
typename T
|
MoveItems(T* dst, U* src, int32 count)
Moves the range of items in the memory from the set of arguments.
The optimized version uses low-level memory copy.
Declaration
public static TEnableIf<!TIsBitwiseConstructible<T, U>::Value>::Type MoveItems(T* dst, U* src, int32 count)
Parameters
T
dst
The address of the first memory location to move. |
U
src
The address of the first memory location to pass to the move constructor. |
int32
count
The number of element to move. Can be equal 0. |
Returns
TEnableIf<!TIsBitwiseConstructible<T, U>::Value>::Type
|
Type Parameters
typename T
|
typename U
|