Adapt CFIFlash for use with std::istream.
More...
#include <flash.h>
|
| CFIStreamBuf (CFIFlash &flash) |
|
virtual int_type | underflow () OVERRIDE FINAL |
|
virtual pos_type | seekoff (off_type off, std::ios_base::seekdir dir, std::ios_base::openmode mode) OVERRIDE FINAL |
|
virtual pos_type | seekpos (pos_type pos, std::ios_base::openmode mode) OVERRIDE FINAL |
|
Adapt CFIFlash for use with std::istream.
Definition at line 89 of file flash.h.
◆ CFIStreamBuf()
mrf::CFIStreamBuf::CFIStreamBuf |
( |
CFIFlash & |
flash | ) |
|
◆ seekoff()
CFIStreamBuf::pos_type mrf::CFIStreamBuf::seekoff |
( |
off_type |
off, |
|
|
std::ios_base::seekdir |
dir, |
|
|
std::ios_base::openmode |
mode |
|
) |
| |
|
virtual |
Definition at line 388 of file flash.cpp.
390 if(dir==std::ios_base::cur)
392 else if(dir==std::ios_base::end)
virtual pos_type seekpos(pos_type pos, std::ios_base::openmode mode) OVERRIDE FINAL
◆ seekpos()
CFIStreamBuf::pos_type mrf::CFIStreamBuf::seekpos |
( |
pos_type |
pos, |
|
|
std::ios_base::openmode |
mode |
|
) |
| |
|
virtual |
Definition at line 398 of file flash.cpp.
401 setg(&buf[0], &buf[0], &buf[0]);
◆ underflow()
CFIStreamBuf::int_type mrf::CFIStreamBuf::underflow |
( |
| ) |
|
|
virtual |
Definition at line 376 of file flash.cpp.
380 flash.
read(pos, buf.size(), (epicsUInt8*)&buf[0]);
381 setg(&buf[0], &buf[0], &buf[buf.size()]);
void read(epicsUInt32 start, epicsUInt32 count, epicsUInt8 *in)
The documentation for this class was generated from the following files: