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