FGenericPlatformMemory::ReadUnaligned

Loads a simple POD type from unaligned memory.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMemory.h

Include

#include "GenericPlatform/GenericPlatformMemory.h"

Syntax

template<typename T>
static T ReadUnaligned
(
    const void * Ptr
)

Remarks

Loads a simple POD type from unaligned memory.

Returns

Value at Ptr

Parameters

Parameter

Description

Ptr

unaligned memory of at least size sizeof(T)