use read to query input, adjusts current
| 221 | |
| 222 | // use read to query input, adjusts current |
| 223 | void input_buffer::read(byte* dst, uint length) |
| 224 | { |
| 225 | if (dst && error_ == 0 && check(current_ + length - 1, size_) == 0) { |
| 226 | memcpy(dst, &buffer_[current_], length); |
| 227 | current_ += length; |
| 228 | } else { |
| 229 | error_ = -1; |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | |
| 234 |
no outgoing calls
no test coverage detected