hobbes
a language, embedded compiler, and runtime for efficient dynamic expression evaluation, data storage and analysis
Public Member Functions | Private Member Functions | Private Attributes | List of all members
hobbes::storage::wpipe Class Reference

#include <storage.H>

Collaboration diagram for hobbes::storage::wpipe:
Collaboration graph

Public Member Functions

 wpipe (writer *wq, PipeQOS qos=Reliable)
 
void commit ()
 
bool hasSpaceFor (size_t sz) const
 
bool write (const uint8_t *src, size_t sz)
 

Private Member Functions

void markPage (uint8_t c)
 
bool reliable () const
 
bool stepPage ()
 

Private Attributes

writerwq
 
uint8_t * page
 
size_t pagesz
 
uint32_t offset
 
PipeQOS qos
 

Constructor & Destructor Documentation

◆ wpipe()

hobbes::storage::wpipe::wpipe ( writer wq,
PipeQOS  qos = Reliable 
)
inline

Member Function Documentation

◆ commit()

void hobbes::storage::wpipe::commit ( )
inline

◆ hasSpaceFor()

bool hobbes::storage::wpipe::hasSpaceFor ( size_t  sz) const
inline

◆ markPage()

void hobbes::storage::wpipe::markPage ( uint8_t  c)
inlineprivate

◆ reliable()

bool hobbes::storage::wpipe::reliable ( ) const
inlineprivate

◆ stepPage()

bool hobbes::storage::wpipe::stepPage ( )
inlineprivate

◆ write()

bool hobbes::storage::wpipe::write ( const uint8_t *  src,
size_t  sz 
)
inline

Member Data Documentation

◆ offset

uint32_t hobbes::storage::wpipe::offset
private

◆ page

uint8_t* hobbes::storage::wpipe::page
private

◆ pagesz

size_t hobbes::storage::wpipe::pagesz
private

◆ qos

PipeQOS hobbes::storage::wpipe::qos
private

◆ wq

writer* hobbes::storage::wpipe::wq
private

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