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

Method reset

test/read.cpp:53–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 }
52
53 void reset(const void* data, size_t length)
54 {
55 BOOST_ASIO_CHECK(length <= max_length);
56
57 memcpy(data_, data, length);
58 length_ = length;
59 position_ = 0;
60 next_read_length_ = length;
61 }
62
63 void next_read_length(size_t length)
64 {

Calls

no outgoing calls