39 #include "blocxx/BLOCXX_config.h"
44 namespace BLOCXX_NAMESPACE
51 return (gptr() < egptr()) ?
static_cast<unsigned char>(*gptr()) : EOF;
55 std::streambuf::pos_type
58 pos_type ret = pos_type(off_type(-1));
60 char* begin = eback();
66 if (way == std::ios_base::cur)
70 else if (way == std::ios_base::end)
75 if (newOff + off >= 0 && end - begin >= newOff + off)
77 setg(begin, begin + newOff + off, end);
78 ret = pos_type(newOff);
85 std::streambuf::pos_type
88 pos_type ret = pos_type(off_type(-1));
90 char* begin = eback();
93 if (sp <= end - begin)
95 setg(begin, begin + sp, end);
106 m_bfr.reserve(initialSize);