CTR Pia  4.11.3
Game Communication Engine
nn::pia::common::ByteOrder Class Reference

Converts the byte order. More...

Static Public Member Functions

static u16 HostToNetwork16 (u16 host)
 Converts a u16 value from host byte order to network byte order. More...
 
static u32 HostToNetwork32 (u32 host)
 Converts a u32 value from host byte order to network byte order. More...
 
static u64 HostToNetwork64 (u64 host)
 Converts a u64 value from host byte order to network byte order. More...
 
static u16 NetworkToHost16 (u16 net)
 Converts a u16 value from network byte order to host byte order. More...
 
static u32 NetworkToHost32 (u32 net)
 Converts a u32 value from network byte order to host byte order. More...
 
static u64 NetworkToHost64 (u64 net)
 Converts a u64 value from network byte order to host byte order. More...
 

Detailed Description

Converts the byte order.


Revision History:
2012-04-04 Initial version.

Member Function Documentation

static u16 nn::pia::common::ByteOrder::HostToNetwork16 ( u16  host)
inlinestatic

Converts a u16 value from host byte order to network byte order.

Parameters
[in]hostSpecifies the u16 value in host byte order.
Returns
Returns the u16 value in network byte order.
static u32 nn::pia::common::ByteOrder::HostToNetwork32 ( u32  host)
inlinestatic

Converts a u32 value from host byte order to network byte order.

Parameters
[in]hostSpecifies the u32 value in host byte order.
Returns
Returns the u32 value in network byte order.
static u64 nn::pia::common::ByteOrder::HostToNetwork64 ( u64  host)
inlinestatic

Converts a u64 value from host byte order to network byte order.

Parameters
[in]hostSpecifies the u64 value in host byte order.
Returns
Returns the u64 value in network byte order.
static u16 nn::pia::common::ByteOrder::NetworkToHost16 ( u16  net)
inlinestatic

Converts a u16 value from network byte order to host byte order.

Parameters
[in]netSpecifies the u16 value in network byte order.
Returns
Returns the u16 value in host byte order.
static u32 nn::pia::common::ByteOrder::NetworkToHost32 ( u32  net)
inlinestatic

Converts a u32 value from network byte order to host byte order.

Parameters
[in]netSpecifies the u32 value in network byte order.
Returns
Returns the u32 value in host byte order.
static u64 nn::pia::common::ByteOrder::NetworkToHost64 ( u64  net)
inlinestatic

Converts a u64 value from network byte order to host byte order.

Parameters
[in]netSpecifies the u64 value in network byte order.
Returns
Returns the u64 value in host byte order.