本文整理汇总了C++中ConnectionWriter::appendInt32方法的典型用法代码示例。如果您正苦于以下问题:C++ ConnectionWriter::appendInt32方法的具体用法?C++ ConnectionWriter::appendInt32怎么用?C++ ConnectionWriter::appendInt32使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ConnectionWriter
的用法示例。
在下文中一共展示了ConnectionWriter::appendInt32方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: write
bool Value::write(ConnectionWriter& connection) const
{
if (!proxy) {
connection.appendInt32(BOTTLE_TAG_LIST);
connection.appendInt32(0);
return !connection.isError();
}
connection.appendInt32(BOTTLE_TAG_LIST);
connection.appendInt32(1);
return proxy->write(connection);
}
示例2: writeRaw
bool StoreBlob::writeRaw(ConnectionWriter& writer) const
{
writer.appendInt32(static_cast<std::int32_t>(x.length()));
writer.appendBlock(x.c_str(), x.length());
return true;
}
示例3: write
bool Storable::write(ConnectionWriter& connection) const
{
connection.appendInt32(getCode());
return writeRaw(connection);
}