CatapultServer  v0.5.0.1 (Elephant)
catapult::io::FileBlockStorage::HashFile Class Referencefinal

Public Member Functions

 HashFile (const std::string &dataDirectory)
 
model::HashRange loadHashesFrom (Height height, size_t numHashes) const
 
void save (Height height, const Hash256 &hash)
 
void reset ()
 

Private Attributes

const std::string & m_dataDirectory
 
uint64_t m_cachedDirectoryId
 
std::unique_ptr< RawFilem_pCachedHashFile
 

Constructor & Destructor Documentation

◆ HashFile()

catapult::io::FileBlockStorage::HashFile::HashFile ( const std::string &  dataDirectory)
explicit

Member Function Documentation

◆ loadHashesFrom()

model::HashRange catapult::io::FileBlockStorage::HashFile::loadHashesFrom ( Height  height,
size_t  numHashes 
) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset()

void catapult::io::FileBlockStorage::HashFile::reset ( )
Here is the caller graph for this function:

◆ save()

void catapult::io::FileBlockStorage::HashFile::save ( Height  height,
const Hash256 hash 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_cachedDirectoryId

uint64_t catapult::io::FileBlockStorage::HashFile::m_cachedDirectoryId
private

◆ m_dataDirectory

const std::string& catapult::io::FileBlockStorage::HashFile::m_dataDirectory
private

◆ m_pCachedHashFile

std::unique_ptr<RawFile> catapult::io::FileBlockStorage::HashFile::m_pCachedHashFile
private

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