| 39 | |
| 40 | |
| 41 | void Charbuf::initialize(char *buf, size_t count, std::ios::pos_type bufOffset) |
| 42 | { |
| 43 | m_bufOffset = bufOffset; |
| 44 | m_buf = buf; |
| 45 | setg(buf, buf, buf + count); |
| 46 | setp(buf, buf + count); |
| 47 | } |
| 48 | |
| 49 | |
| 50 | std::ios::pos_type Charbuf::seekpos(std::ios::pos_type pos, |