#include <safe_ifstream.hh>
Basic operations | |
SafeIFStreamBuf (const int f) | |
Public Attributes | |
int | fd |
Our file descriptor. | |
Protected Member Functions | |
virtual int_type | underflow () |
virtual pos_type | seekoff (off_type, std::ios_base::seekdir, std::ios_base::openmode) |
virtual pos_type | seekpos (pos_type, std::ios_base::openmode) |
Protected Attributes | |
char | buffer [buffer_size] |
Static Protected Attributes | |
static const int | lookbehind_size = 16 |
static const int | buffer_size = 512 + lookbehind_size |
See TCppSL Ch. 13.13 for what we're doing here. The buffer code is based upon the "io/inbuf1.hpp" example in section 13.13.3.