27 #ifndef BOOST_FDSTREAM_HPP
28 #define BOOST_FDSTREAM_HPP
73 if (write (fd, &z, 1) != 1) {
81 std::streamsize
xsputn (
const char* s,
82 std::streamsize num) {
83 return write(fd,s,num);
135 if (gptr() < egptr()) {
136 return traits_type::to_int_type(*gptr());
144 numPutback = gptr() - eback();
145 if (numPutback > pbSize) {
152 memmove (buffer+(pbSize-numPutback), gptr()-numPutback,
157 num = read (fd, buffer+pbSize, bufSize);
164 setg (buffer+(pbSize-numPutback),
169 return traits_type::to_int_type(*gptr());
virtual std::streamsize xsputn(const char *s, std::streamsize num)
virtual int_type underflow()
char buffer[bufSize+pbSize]
virtual int_type overflow(int_type c)