Thrill
0.1
|
CRTP class to enhance item/memory writer classes with Varint encoding and String encoding.
Definition at line 31 of file item_serialization_tools.hpp.
#include <item_serialization_tools.hpp>
Public Member Functions | |
Writer & | PutString (const char *data, size_t len) |
Put a string by saving it's length followed by the data itself. More... | |
Writer & | PutString (const uint8_t *data, size_t len) |
Put a string by saving it's length followed by the data itself. More... | |
Writer & | PutString (const std::string &str) |
Put a string by saving it's length followed by the data itself. More... | |
Writer & | PutVarint (uint64_t v) |
Append a varint to the writer. More... | |
Writer & | PutVarint32 (uint32_t v) |
Append a varint to the writer. More... | |
|
inline |
Put a string by saving it's length followed by the data itself.
Definition at line 151 of file item_serialization_tools.hpp.
Referenced by ItemWriterToolsBase< BlockWriter< BlockSink > >::PutString().
|
inline |
Put a string by saving it's length followed by the data itself.
Definition at line 156 of file item_serialization_tools.hpp.
|
inline |
Put a string by saving it's length followed by the data itself.
Definition at line 161 of file item_serialization_tools.hpp.
|
inline |
Append a varint to the writer.
Definition at line 68 of file item_serialization_tools.hpp.
Referenced by ItemWriterToolsBase< BlockWriter< BlockSink > >::PutString().
|
inline |
Append a varint to the writer.
Definition at line 35 of file item_serialization_tools.hpp.