<feed xmlns='http://www.w3.org/2005/Atom'>
<title>monzero-core.git/contrib/epee/src/byte_slice.cpp, branch v0.17.3.0</title>
<subtitle>Monzero core node, command-line wallet, consensus code, and release tooling.
</subtitle>
<id>https://code.monzero.org/monzero-core.git/atom?h=v0.17.3.0</id>
<link rel='self' href='https://code.monzero.org/monzero-core.git/atom?h=v0.17.3.0'/>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/'/>
<updated>2020-07-08T22:07:50Z</updated>
<entry>
<title>Merge pull request #6559</title>
<updated>2020-07-08T22:07:50Z</updated>
<author>
<name>luigi1111</name>
<email>luigi1111w@gmail.com</email>
</author>
<published>2020-07-08T22:07:50Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=35e2520115835463c55840912d2dc0f89e32ab97'/>
<id>urn:sha1:35e2520115835463c55840912d2dc0f89e32ab97</id>
<content type='text'>
15538f7 ByteSlice: Fix persisting ptr to std::moved SSO buffer (Doy-lee)
</content>
</entry>
<entry>
<title>ByteSlice: Fix persisting ptr to std::moved SSO buffer</title>
<updated>2020-05-20T00:13:58Z</updated>
<author>
<name>Doyle</name>
<email>doylet@protonmail.com</email>
</author>
<published>2020-05-19T08:45:32Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=15538f7e3f8fdafb13b99554a8726850caeef937'/>
<id>urn:sha1:15538f7e3f8fdafb13b99554a8726850caeef937</id>
<content type='text'>
The Bug:
1. Construct `byte_slice.portion_` with `epee::span(buffer)` which copies a pointer to the SSO buffer to `byte_slice.portion_`
2. It constructs `byte_slice.storage_` with `std::move(buffer)` (normally this swap pointers, but SSO means a memcpy and clear on the original SSO buffer)
3. `slice.data()` returns a pointer from `slice.portion_` that points to the original SSO cleared buffer, `slice.storage_` has the actual string.
</content>
</entry>
<entry>
<title>Fixed bugs for take_slice and byte_stream-&gt;byte_slice</title>
<updated>2020-05-12T05:26:37Z</updated>
<author>
<name>Lee Clagett</name>
<email>code@leeclagett.com</email>
</author>
<published>2020-05-12T05:26:37Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=29e563bb1ed0be0f358235faf1b1848b222b584d'/>
<id>urn:sha1:29e563bb1ed0be0f358235faf1b1848b222b584d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add byte_stream for zero-copy serialization, and add support in ZMQ-JSON.</title>
<updated>2020-04-11T04:12:11Z</updated>
<author>
<name>Lee Clagett</name>
<email>code@leeclagett.com</email>
</author>
<published>2020-03-18T23:22:39Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=c26c93019a52dee52ee865f4f1b23e6929968258'/>
<id>urn:sha1:c26c93019a52dee52ee865f4f1b23e6929968258</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use byte_slice for sending zmq messages - removes data copy within zmq</title>
<updated>2020-04-03T01:56:17Z</updated>
<author>
<name>Lee Clagett</name>
<email>code@leeclagett.com</email>
</author>
<published>2019-11-17T06:06:10Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=da9915746219482c25b96406d475c6fde9b02a31'/>
<id>urn:sha1:da9915746219482c25b96406d475c6fde9b02a31</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add ref-counted buffer byte_slice. Currently used for sending TCP data.</title>
<updated>2019-07-16T16:30:35Z</updated>
<author>
<name>Lee Clagett</name>
<email>code@leeclagett.com</email>
</author>
<published>2019-05-11T15:38:35Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=bdfc63ae4ddc52e2dece2a031a91509418206cb0'/>
<id>urn:sha1:bdfc63ae4ddc52e2dece2a031a91509418206cb0</id>
<content type='text'>
</content>
</entry>
</feed>
