計算機のエンディアンを取得し,自動的に変換するライブラリ [詳細]
#include "mist_conf.h"
データ構造 | |
union | mist::byte_array< T > |
バイト配列と値のペアを表現するクラス [詳細] |
ネームスペース | |
namespace | mist |
関数 | |
bool | mist::_is_little_endian_ () |
現在のマシンのエンディアンがリトルエンディアンかどうかを調べる | |
bool | mist::_is_big_endian_ () |
現在のマシンのエンディアンがビッグエンディアンかどうかを調べる | |
template<class T > | |
void | mist::swap_bytes (byte_array< T > &bytes) |
byte_array内のバイトスワップをする | |
template<class T > | |
byte_array< T > | mist::to_current_endian (const byte_array< T > &bytes, bool from_little_endian) |
byte_array内のデータを現在の計算機のエンディアンに合わせる | |
template<class T > | |
byte_array< T > | mist::from_current_endian (const byte_array< T > &bytes, bool to_little_endian) |
byte_array内のデータを現在の計算機のエンディアンから目的のエンディアンに合わせる |
計算機のエンディアンを取得し,自動的に変換するライブラリ