FGenericPlatformTypes

Generic types for almost all compilers and platforms

Windows
MacOS
Linux

Inheritance Hierarchy

FGenericPlatformTypes

FHoloLensTypes

FUnixPlatformTypes

References

Module

Core

Header

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

Include

#include "GenericPlatform/GenericPlatform.h"

Syntax

struct FGenericPlatformTypes

Remarks

Generic types for almost all compilers and platforms

Variables

Name Description

Public variable

decltype(nullpt...

 

TYPE_OF_NULLPTR

Typedefs

Name

Description

ANSICHAR

An ANSI character. 8-bit fixed-width representation of 7-bit characters.

CHAR16

A 16-bit character type. In-memory only. 16-bit representation. Should really be char16_t but making this the generic option is easier for compilers which don't fully support C++11 yet (i.e. MSVC).

CHAR32

A 32-bit character type. In-memory only. 32-bit representation. Should really be char32_t but making this the generic option is easier for compilers which don't fully support C++11 yet (i.e. MSVC).

CHAR8

An 8-bit character type. In-memory only. 8-bit representation. Should really be char8_t but making this the generic option is easier for compilers which don't fully support C++11 yet (i.e. MSVC).

int16

16-bit signed integer

int32

32-bit signed integer

int64

64-bit signed integer

int8

8-bit signed integer

PTRINT

Signed int. The same size as a pointer.

SIZE_T

Unsigned int. The same size as a pointer.

SSIZE_T

Signed int. The same size as a pointer.

TCHAR

A switchable character. In-memory only. Either ANSICHAR or WIDECHAR, depending on a licensee's requirements.

TYPE_OF_NULL

uint16

16-bit unsigned integer

uint32

32-bit unsigned integer

uint64

64-bit unsigned integer

uint8

8-bit unsigned integer

UPTRINT

Unsigned int. The same size as a pointer.

WIDECHAR

A wide character. In-memory only. ?-bit fixed-width representation of the platform's natural wide character set. Could be different sizes on different platforms.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback