FGenericPlatformMemory::WriteUnaligned

Stores a simple POD type to 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 void WriteUnaligned
(
    void * Ptr,
    const T & InValue
)

Remarks

Stores a simple POD type to unaligned memory.

Parameters

Parameter

Description

Ptr

unaligned memory of at least size sizeof(T)

Value

value to write at Ptr