summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-07-01 21:24:37 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-07-01 21:24:37 +0000
commit06a9152a179c205c10b8e26dfc1b794ee82b026a (patch)
treea9173d21b9e87a3b8a456c55cab58d7b1698f55f /vespalib
parent96b5f9a2355c37d9e25f5e8f500209c910d59250 (diff)
Undo unintended reformatting
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/data/slime/binary_format.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/vespalib/src/vespa/vespalib/data/slime/binary_format.cpp b/vespalib/src/vespa/vespalib/data/slime/binary_format.cpp
index d5d2df58dda..2eb6173b1e5 100644
--- a/vespalib/src/vespa/vespalib/data/slime/binary_format.cpp
+++ b/vespalib/src/vespa/vespalib/data/slime/binary_format.cpp
@@ -90,12 +90,14 @@ struct BinaryEncoder : public ArrayTraverser,
};
void
-BinaryEncoder::entry(size_t, const Inspector &inspector) {
+BinaryEncoder::entry(size_t, const Inspector &inspector)
+{
encodeValue(inspector);
}
void
-BinaryEncoder::field(const Symbol &symbol, const Inspector &inspector) {
+BinaryEncoder::field(const Symbol &symbol, const Inspector &inspector)
+{
write_cmpr_ulong_impl(out, symbol.getValue());
encodeValue(inspector);
}
@@ -130,12 +132,12 @@ struct MappedSymbols {
}
};
-template<bool remap_symbols>
+template <bool remap_symbols>
struct SymbolHandler {
typedef typename std::conditional<remap_symbols, MappedSymbols, DirectSymbols>::type type;
};
-template<bool remap_symbols>
+template <bool remap_symbols>
struct BinaryDecoder : SymbolHandler<remap_symbols>::type {
InputReader &in;
@@ -212,9 +214,10 @@ struct BinaryDecoder : SymbolHandler<remap_symbols>::type {
}
};
-template<bool remap_symbols>
+template <bool remap_symbols>
Cursor &
-BinaryDecoder<remap_symbols>::decodeArray(const Inserter &inserter, uint32_t meta) {
+BinaryDecoder<remap_symbols>::decodeArray(const Inserter &inserter, uint32_t meta)
+{
Cursor &cursor = inserter.insertArray();
ArrayInserter childInserter(cursor);
uint64_t size = read_size(in, meta);
@@ -224,9 +227,10 @@ BinaryDecoder<remap_symbols>::decodeArray(const Inserter &inserter, uint32_t met
return cursor;
}
-template<bool remap_symbols>
+template <bool remap_symbols>
Cursor &
-BinaryDecoder<remap_symbols>::decodeObject(const Inserter &inserter, uint32_t meta) {
+BinaryDecoder<remap_symbols>::decodeObject(const Inserter &inserter, uint32_t meta)
+{
Cursor &cursor = inserter.insertObject();
uint64_t size = read_size(in, meta);
for (size_t i = 0; i < size; ++i) {