equal
deleted
inserted
replaced
272 void setb(char_type* buf, int len) { |
272 void setb(char_type* buf, int len) { |
273 _base = buf; |
273 _base = buf; |
274 _eptr = buf + len; |
274 _eptr = buf + len; |
275 } |
275 } |
276 |
276 |
277 virtual std::streambuf* setbuf(char *buf, int len) { |
277 virtual std::streambuf* setbuf(char *buf, std::streamsize len) { |
278 if (base()) return 0; |
278 if (base()) return 0; |
279 if (buf != 0 && len >= (int)sizeof(small_buf)) { |
279 if (buf != 0 && len >= (int)sizeof(small_buf)) { |
280 setb(buf, len); |
280 setb(buf, len); |
281 } else { |
281 } else { |
282 setb(small_buf, sizeof(small_buf)); |
282 setb(small_buf, sizeof(small_buf)); |