Flex  0.17.9
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
gs::WalWriter Class Reference

#include <wal.h>

Public Member Functions

 WalWriter ()
 
 ~WalWriter ()
 
void open (const std::string &prefix, int thread_id)
 
void close ()
 
void append (const char *data, size_t length)
 

Private Attributes

int fd_
 
size_t file_size_
 
size_t file_used_
 

Static Private Attributes

static constexpr size_t TRUNC_SIZE = 1ul << 30
 

Constructor & Destructor Documentation

◆ WalWriter()

gs::WalWriter::WalWriter ( )
inline

◆ ~WalWriter()

gs::WalWriter::~WalWriter ( )
inline

Member Function Documentation

◆ append()

void gs::WalWriter::append ( const char *  data,
size_t  length 
)

◆ close()

void gs::WalWriter::close ( )

◆ open()

void gs::WalWriter::open ( const std::string &  prefix,
int  thread_id 
)

Member Data Documentation

◆ fd_

int gs::WalWriter::fd_
private

◆ file_size_

size_t gs::WalWriter::file_size_
private

◆ file_used_

size_t gs::WalWriter::file_used_
private

◆ TRUNC_SIZE

constexpr size_t gs::WalWriter::TRUNC_SIZE = 1ul << 30
staticconstexprprivate

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