CTR-Pia  5.4.3
Game Communication Engine
 全て クラス ネームスペース 関数 変数 型定義 列挙型 列挙型の値 ページ
クラス nn::pia::common::ByteOrder

バイトオーダー変換 [詳細]

Static Public メソッド

static uint16_t HostToNetwork16 (uint16_t host)
 uint16_t の値をホストバイトオーダーからネットワークバイトオーダーに変換
 
static uint32_t HostToNetwork32 (uint32_t host)
 uint32_t の値をホストバイトオーダーからネットワークバイトオーダーに変換
 
static uint64_t HostToNetwork64 (uint64_t host)
 uint64_t の値をホストバイトオーダーからネットワークバイトオーダーに変換
 
static uint16_t NetworkToHost16 (uint16_t net)
 uint16_t の値をネットワークバイトオーダーからホストバイトオーダーに変換
 
static uint32_t NetworkToHost32 (uint32_t net)
 uint32_t の値をネットワークバイトオーダーからホストバイトオーダーに変換
 
static uint64_t NetworkToHost64 (uint64_t net)
 uint64_t の値をネットワークバイトオーダーからホストバイトオーダーに変換
 
static void serializeU64 (uint8_t *pData, uint64_t a)
 ネットワークバイトオーダー(ビッグエンディアン)にシリアライズします
 

説明

バイトオーダー変換

関数

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

uint16_t の値をホストバイトオーダーからネットワークバイトオーダーに変換

引数
[in]hostホストバイトオーダーの uint16_t の値です。
戻り値
ネットワークバイトオーダーの uint16_t の値です。
static uint32_t nn::pia::common::ByteOrder::HostToNetwork32 ( uint32_t  host)
inlinestatic

uint32_t の値をホストバイトオーダーからネットワークバイトオーダーに変換

引数
[in]hostホストバイトオーダーの uint32_t の値です。
戻り値
ネットワークバイトオーダーの uint32_t の値です。
static uint64_t nn::pia::common::ByteOrder::HostToNetwork64 ( uint64_t  host)
inlinestatic

uint64_t の値をホストバイトオーダーからネットワークバイトオーダーに変換

引数
[in]hostホストバイトオーダーの uint64_t の値です。
戻り値
ネットワークバイトオーダーの uint64_t の値です。
static uint16_t nn::pia::common::ByteOrder::NetworkToHost16 ( uint16_t  net)
inlinestatic

uint16_t の値をネットワークバイトオーダーからホストバイトオーダーに変換

引数
[in]netネットワークバイトオーダーの uint16_t の値です。
戻り値
ホストバイトオーダーの uint16_t の値です。
static uint32_t nn::pia::common::ByteOrder::NetworkToHost32 ( uint32_t  net)
inlinestatic

uint32_t の値をネットワークバイトオーダーからホストバイトオーダーに変換

引数
[in]netネットワークバイトオーダーの uint32_t の値です。
戻り値
ホストバイトオーダーの uint32_t の値です。
static uint64_t nn::pia::common::ByteOrder::NetworkToHost64 ( uint64_t  net)
inlinestatic

uint64_t の値をネットワークバイトオーダーからホストバイトオーダーに変換

引数
[in]netネットワークバイトオーダーの uint64_t の値です。
戻り値
ホストバイトオーダーの uint64_t の値です。