MCPcopy Create free account
hub / github.com/boostorg/asio / reset

Method reset

test/read_at.cpp:51–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Calls

no outgoing calls