Cuberite
A lightweight, fast and extensible game server for Minecraft
Macros | Functions
Endianness.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ntohll(x)   (((static_cast<UInt64>(ntohl(static_cast<UInt32>(x)))) << 32) + ntohl(x >> 32))
 

Functions

UInt32 HostToNetwork4 (const void *a_Value)
 
UInt64 HostToNetwork8 (const void *a_Value)
 
double NetworkToHostDouble8 (const void *a_Value)
 
float NetworkToHostFloat4 (const void *a_Value)
 
Int64 NetworkToHostLong8 (const void *a_Value)
 
UInt64 NetworkToHostULong8 (const void *a_Value)
 

Macro Definition Documentation

◆ ntohll

#define ntohll (   x)    (((static_cast<UInt64>(ntohl(static_cast<UInt32>(x)))) << 32) + ntohl(x >> 32))

Definition at line 5 of file Endianness.h.

Function Documentation

◆ HostToNetwork4()

UInt32 HostToNetwork4 ( const void *  a_Value)
inline

Definition at line 24 of file Endianness.h.

◆ HostToNetwork8()

UInt64 HostToNetwork8 ( const void *  a_Value)
inline

Definition at line 12 of file Endianness.h.

◆ NetworkToHostDouble8()

double NetworkToHostDouble8 ( const void *  a_Value)
inline

Definition at line 36 of file Endianness.h.

◆ NetworkToHostFloat4()

float NetworkToHostFloat4 ( const void *  a_Value)
inline

Definition at line 74 of file Endianness.h.

◆ NetworkToHostLong8()

Int64 NetworkToHostLong8 ( const void *  a_Value)
inline

Definition at line 50 of file Endianness.h.

◆ NetworkToHostULong8()

UInt64 NetworkToHostULong8 ( const void *  a_Value)
inline

Definition at line 62 of file Endianness.h.