| 49 | } |
| 50 | |
| 51 | void reset(const void* data, size_t length) |
| 52 | { |
| 53 | BOOST_ASIO_CHECK(length <= max_length); |
| 54 | |
| 55 | length_ = 0; |
| 56 | while (length_ + length < max_length) |
| 57 | { |
| 58 | memcpy(data_ + length_, data, length); |
| 59 | length_ += length; |
| 60 | } |
| 61 | |
| 62 | next_read_length_ = length; |
| 63 | } |
| 64 | |
| 65 | void next_read_length(size_t length) |
| 66 | { |
no outgoing calls