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); }
bool StoreBlob::writeRaw(ConnectionWriter& writer) const { writer.appendInt32(static_cast<std::int32_t>(x.length())); writer.appendBlock(x.c_str(), x.length()); return true; }
bool StoreVocab::writeRaw(ConnectionWriter& writer) const { writer.appendInt32(x); return true; }
bool Storable::write(ConnectionWriter& connection) const { connection.appendInt32(getCode()); return writeRaw(connection); }