14#include "CoreMinimal.h"
26 template<
typename T,
typename Allocator = FDefaultAllocator>
30 reinterpret_cast<uint8*
>(array.GetData()),
31 array.Num() *
sizeof(T)
42 template<
typename T,
typename Allocator = FDefaultAllocator>
46 reinterpret_cast<T*
>(array.GetData()),
47 array.Num() /
sizeof(T)
TArrayView< uint8 > MakeByteArrayViewFromTyped(TArray< T, Allocator > &array)
Makes a non-owning byte array view of the source typed array.
TArrayView< T > MakeTypedArrayViewFromBytes(TArray< uint8, Allocator > &array)
Makes a non-owning typed array view of the source byte array.