FGenericPlatformAtomics::IsAligned

Checks if a pointer is aligned and can be used with atomic functions.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "GenericPlatform/GenericPlatformAtomics.h"

Syntax

static bool IsAligned
(
    const volatile void * Ptr,
    const uint32 Alignment
)

Remarks

Checks if a pointer is aligned and can be used with atomic functions.

Returns

true if the pointer is aligned, false otherwise.

Parameters

Parameter

Description

Ptr

The pointer to check.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss