| 111 | } |
| 112 | |
| 113 | int flush_out_buffer ( |
| 114 | ) |
| 115 | { |
| 116 | int num = static_cast<int>(pptr()-pbase()); |
| 117 | if (con.write(out_buffer.get(),num) != num) |
| 118 | { |
| 119 | // the write was not successful so return EOF |
| 120 | return EOF; |
| 121 | } |
| 122 | pbump(-num); |
| 123 | return num; |
| 124 | } |
| 125 | |
| 126 | // output functions |
| 127 | int_type overflow ( |