Thrill  0.1
ItemWriterToolsBase< Writer > Class Template Reference

Detailed Description

template<typename Writer>
class thrill::common::ItemWriterToolsBase< Writer >

CRTP class to enhance item/memory writer classes with Varint encoding and String encoding.

Definition at line 31 of file item_serialization_tools.hpp.

+ Inheritance diagram for ItemWriterToolsBase< Writer >:

#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...
 

Member Function Documentation

◆ PutString() [1/3]

Writer& PutString ( const char *  data,
size_t  len 
)
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().

◆ PutString() [2/3]

Writer& PutString ( const uint8_t *  data,
size_t  len 
)
inline

Put a string by saving it's length followed by the data itself.

Definition at line 156 of file item_serialization_tools.hpp.

◆ PutString() [3/3]

Writer& PutString ( const std::string &  str)
inline

Put a string by saving it's length followed by the data itself.

Definition at line 161 of file item_serialization_tools.hpp.

◆ PutVarint()

Writer& PutVarint ( uint64_t  v)
inline

Append a varint to the writer.

Definition at line 68 of file item_serialization_tools.hpp.

Referenced by ItemWriterToolsBase< BlockWriter< BlockSink > >::PutString().

◆ PutVarint32()

Writer& PutVarint32 ( uint32_t  v)
inline

Append a varint to the writer.

Definition at line 35 of file item_serialization_tools.hpp.


The documentation for this class was generated from the following file: