本文整理匯總了C++中CheckForAvailableArgumentSpace函數的典型用法代碼示例。如果您正苦於以下問題:C++ CheckForAvailableArgumentSpace函數的具體用法?C++ CheckForAvailableArgumentSpace怎麽用?C++ CheckForAvailableArgumentSpace使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了CheckForAvailableArgumentSpace函數的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: CheckForAvailableArgumentSpace
OutboundPacketStream& OutboundPacketStream::operator<<( float rhs )
{
CheckForAvailableArgumentSpace(4);
*(--typeTagsCurrent_) = FLOAT_TYPE_TAG;
#ifdef OSC_HOST_LITTLE_ENDIAN
union{
float f;
char c[4];
} u;
u.f = rhs;
argumentCurrent_[3] = u.c[0];
argumentCurrent_[2] = u.c[1];
argumentCurrent_[1] = u.c[2];
argumentCurrent_[0] = u.c[3];
#else
*reinterpret_cast<float*>(argumentCurrent_) = rhs;
#endif
argumentCurrent_ += 4;
return *this;
}
示例2: CheckForAvailableArgumentSpace
NxDeviceOscOutputMessage& NxDeviceOscOutputMessage::operator<<( bool rhs )
{
CheckForAvailableArgumentSpace(0);
*(--typeTagsCurrent_) = (char)((rhs) ? TRUE_TYPE_TAG : FALSE_TYPE_TAG);
return *this;
}
示例3: CheckForAvailableArgumentSpace
OutboundPacketStream& OutboundPacketStream::operator<<( const HashInitiator& rhs )
{
(void) rhs;
CheckForAvailableArgumentSpace(0);
*(--typeTagsCurrent_) = HASH_BEGIN_TYPE_TAG;
return *this;
}
示例4: CheckForAvailableArgumentSpace
OutboundPacketStream& OutboundPacketStream::operator<<(const NilType& rhs)
{
(void)rhs;
CheckForAvailableArgumentSpace(0);
*--typeTagsCurrent_ = NIL_TYPE_TAG;
return *this;
}
示例5: CheckForAvailableArgumentSpace
OutboundPacketStream& OutboundPacketStream::operator<<( const ArrayTerminator& rhs )
{
(void) rhs;
CheckForAvailableArgumentSpace(0);
*(--typeTagsCurrent_) = ARRAY_END_TYPE_TAG;
return *this;
}
示例6: CheckForAvailableArgumentSpace
OutboundPacketStream& OutboundPacketStream::operator<<( bool rhs )
{
state_ = CheckForAvailableArgumentSpace(0);
if(state_ == SUCCESS)
{
*(--typeTagsCurrent_) = (char)((rhs) ? TRUE_TYPE_TAG : FALSE_TYPE_TAG);
}
return *this;
}