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

Method reset

test/write.cpp:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 }
53
54 void reset(size_t length = max_length)
55 {
56 BOOST_ASIO_CHECK(length <= max_length);
57
58 memset(data_, 0, max_length);
59 length_ = length;
60 position_ = 0;
61 next_write_length_ = length;
62 }
63
64 void next_write_length(size_t length)
65 {

Calls

no outgoing calls