OpenRTM-aist 2.1.0
|
シリアライズ後のバイト列を操作するクラス [詳解]
#include <ByteData.h>
公開メンバ関数 | |
ByteData () | |
コンストラクタ | |
~ByteData () | |
デストラクタ | |
ByteData (const ByteData &rhs) | |
コピーコンストラクタ | |
ByteData (const ByteDataStreamBase &rhs) | |
コピーコンストラクタ | |
ByteData & | operator= (const ByteData &rhs) |
代入演算子 | |
ByteData & | operator= (const ByteDataStreamBase &rhs) |
代入演算子 | |
void | readData (unsigned char *data, unsigned long length) const |
引数の変数にデータを格納 | |
void | writeData (const unsigned char *data, unsigned long length) |
内部の変数にデータを格納 | |
unsigned char * | getBuffer () const |
バッファのポインタを取得 | |
unsigned long | getDataLength () const |
バッファのサイズを取得 | |
void | isLittleEndian (bool little_endian) |
エンディアンの設定 | |
void | setDataLength (unsigned long length) |
データのサイズの設定 | |
bool | getEndian () |
エンディアンの取得 | |
シリアライズ後のバイト列を操作するクラス
since 2.0.0
RTC::ByteData::ByteData | ( | ) |
コンストラクタ
RTC::ByteData::~ByteData | ( | ) |
デストラクタ
RTC::ByteData::ByteData | ( | const ByteData & | rhs | ) |
コピーコンストラクタ
rhs |
RTC::ByteData::ByteData | ( | const ByteDataStreamBase & | rhs | ) |
コピーコンストラクタ
rhs |
unsigned char * RTC::ByteData::getBuffer | ( | ) | const |
バッファのポインタを取得
参照元 RTC::ConnectorDataListenerHolderT< DataType >::notify(), RTC::ConnectorDataListenerT< DataType >::operator()().
unsigned long RTC::ByteData::getDataLength | ( | ) | const |
バッファのサイズを取得
参照元 RTC::ConnectorDataListenerHolderT< DataType >::notify(), RTC::ConnectorDataListenerT< DataType >::operator()().
bool RTC::ByteData::getEndian | ( | ) |
エンディアンの取得
void RTC::ByteData::isLittleEndian | ( | bool | little_endian | ) |
エンディアンの設定
little_endian | リトルエンディアン(True)、ビッグエンディアン(False) |
ByteData & RTC::ByteData::operator= | ( | const ByteDataStreamBase & | rhs | ) |
代入演算子
rhs |
void RTC::ByteData::readData | ( | unsigned char * | data, |
unsigned long | length | ||
) | const |
引数の変数にデータを格納
data | 書き込み先の変数 |
length | データの長さ |
void RTC::ByteData::setDataLength | ( | unsigned long | length | ) |
データのサイズの設定
length | データのサイズ |
参照元 RTC::ConnectorDataListenerHolderT< DataType >::notify(), RTC::ConnectorDataListenerT< DataType >::operator()().
void RTC::ByteData::writeData | ( | const unsigned char * | data, |
unsigned long | length | ||
) |
内部の変数にデータを格納
data | 書き込み元の変数 |
length | データの長さ |