users can pass defualt zero length buffer and then allocate
| 88 | |
| 89 | // users can pass defualt zero length buffer and then allocate |
| 90 | void input_buffer::allocate(uint s) |
| 91 | { |
| 92 | if (error_ == 0) { |
| 93 | buffer_ = NEW_YS byte[s]; |
| 94 | end_ = buffer_ + s; |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | |
| 99 | // for passing to raw writing functions at beginning, then use add_size |
no outgoing calls
no test coverage detected