Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::cfile_datastream Class Reference

#include <cfile.hpp>

Public Member Functions

 cfile_datastream (cfile &cf)
 
void skip (size_t s)
 
bool read (char *d, size_t s)
 
bool get (unsigned char &c)
 
bool get (char &c)
 
size_t tellp () const
 

Detailed Description

Definition at line 225 of file cfile.hpp.

Constructor & Destructor Documentation

◆ cfile_datastream()

fc::cfile_datastream::cfile_datastream ( cfile & cf)
inlineexplicit

Definition at line 227 of file cfile.hpp.

227: cf(cf) {}

Member Function Documentation

◆ get() [1/2]

bool fc::cfile_datastream::get ( char & c)
inline

Definition at line 241 of file cfile.hpp.

241{ return read(&c, 1); }
bool read(char *d, size_t s)
Definition cfile.hpp:234
Here is the call graph for this function:

◆ get() [2/2]

bool fc::cfile_datastream::get ( unsigned char & c)
inline

Definition at line 239 of file cfile.hpp.

239{ return get( *(char*)&c ); }
bool get(unsigned char &c)
Definition cfile.hpp:239
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read()

bool fc::cfile_datastream::read ( char * d,
size_t s )
inline

Definition at line 234 of file cfile.hpp.

234 {
235 cf.read( d, s );
236 return true;
237 }
void read(char *d, size_t n)
Definition cfile.hpp:114
char * s
Here is the call graph for this function:
Here is the caller graph for this function:

◆ skip()

void fc::cfile_datastream::skip ( size_t s)
inline

Definition at line 229 of file cfile.hpp.

229 {
230 std::vector<char> d( s );
231 read( &d[0], s );
232 }
CK_ULONG d
Here is the call graph for this function:

◆ tellp()

size_t fc::cfile_datastream::tellp ( ) const
inline

Definition at line 243 of file cfile.hpp.

243{ return cf.tellp(); }
size_t tellp() const
Definition cfile.hpp:79
Here is the call graph for this function:

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