Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
block_log.cpp File Reference
#include <sysio/chain/block_log.hpp>
#include <sysio/chain/exceptions.hpp>
#include <fstream>
#include <fc/bitutil.hpp>
#include <fc/io/cfile.hpp>
#include <fc/io/raw.hpp>
Include dependency graph for block_log.cpp:

Go to the source code of this file.

Classes

class  sysio::chain::detail::block_log_impl
 
class  sysio::chain::detail::reverse_iterator
 
class  sysio::chain::detail::index_writer
 
class  sysio::chain::detail::fileptr_datastream
 

Namespaces

namespace  sysio
 
namespace  sysio::chain
 
namespace  sysio::chain::detail
 

Macros

#define LOG_READ   (std::ios::in | std::ios::binary)
 
#define LOG_WRITE   (std::ios::out | std::ios::binary | std::ios::app)
 
#define LOG_RW   ( std::ios::in | std::ios::out | std::ios::binary )
 
#define LOG_WRITE_C   "ab+"
 
#define LOG_RW_C   "rb+"
 
#define FC_FOPEN(p, m)
 

Typedefs

using sysio::chain::detail::unique_file = std::unique_ptr<FILE, decltype(&fclose)>
 

Functions

constexpr uint64_t sysio::chain::detail::buffer_location_to_file_location (uint32_t buffer_location)
 
constexpr uint32_t sysio::chain::detail::file_location_to_buffer_location (uint32_t file_location)
 
void block_log_set_buff_len (uint64_t len)
 sysio::chain
 

Variables

constexpr uint32_t sysio::chain::detail::pruned_version_flag = 1<<31
 

Macro Definition Documentation

◆ FC_FOPEN

#define FC_FOPEN ( p,
m )
Value:
fopen(p, m)
const mie::Vuint & p
Definition bn.cpp:27

Definition at line 16 of file block_log.cpp.

◆ LOG_READ

#define LOG_READ   (std::ios::in | std::ios::binary)

Definition at line 9 of file block_log.cpp.

◆ LOG_RW

#define LOG_RW   ( std::ios::in | std::ios::out | std::ios::binary )

Definition at line 11 of file block_log.cpp.

◆ LOG_RW_C

#define LOG_RW_C   "rb+"

Definition at line 13 of file block_log.cpp.

◆ LOG_WRITE

#define LOG_WRITE   (std::ios::out | std::ios::binary | std::ios::app)

Definition at line 10 of file block_log.cpp.

◆ LOG_WRITE_C

#define LOG_WRITE_C   "ab+"

Definition at line 12 of file block_log.cpp.

Function Documentation

◆ block_log_set_buff_len()

void block_log_set_buff_len ( uint64_t len)

Definition at line 1432 of file block_log.cpp.