<feed xmlns='http://www.w3.org/2005/Atom'>
<title>monzero-core.git/contrib/epee/src/byte_slice.cpp, branch main</title>
<subtitle>Monzero core node, command-line wallet, consensus code, and release tooling.
</subtitle>
<id>https://code.monzero.org/monzero-core.git/atom?h=main</id>
<link rel='self' href='https://code.monzero.org/monzero-core.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/'/>
<updated>2024-11-22T02:16:22Z</updated>
<entry>
<title>Fix memcpy in byte_slice constructor</title>
<updated>2024-11-22T02:16:22Z</updated>
<author>
<name>Lee *!* Clagett</name>
<email>code@leeclagett.com</email>
</author>
<published>2024-11-19T23:51:52Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=74c313420c1d22c5c8eecb8430fd5fe7a89143d7'/>
<id>urn:sha1:74c313420c1d22c5c8eecb8430fd5fe7a89143d7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Copyright: Update to 2022</title>
<updated>2022-03-04T05:59:20Z</updated>
<author>
<name>mj-xmr</name>
<email>mjxmr@protonmail.com</email>
</author>
<published>2022-03-01T11:16:17Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=da9aa1f7f802552b9de459f331a2f39c84898009'/>
<id>urn:sha1:da9aa1f7f802552b9de459f331a2f39c84898009</id>
<content type='text'>
</content>
</entry>
<entry>
<title>clang: fix -Wrange-loop-analysis warnings</title>
<updated>2021-04-27T03:30:27Z</updated>
<author>
<name>selsta</name>
<email>selsta@sent.at</email>
</author>
<published>2021-04-27T03:21:16Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=451b5a510e115b450e383007c0d09deccb0d333b'/>
<id>urn:sha1:451b5a510e115b450e383007c0d09deccb0d333b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Allow byte_stream-&gt;byte_slice conversion to shrink unused buffer space</title>
<updated>2020-10-13T15:09:18Z</updated>
<author>
<name>Lee Clagett</name>
<email>code@leeclagett.com</email>
</author>
<published>2020-10-13T15:09:18Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=249eae5f4aad8c90e4e0eae19268fbf74fe05783'/>
<id>urn:sha1:249eae5f4aad8c90e4e0eae19268fbf74fe05783</id>
<content type='text'>
</content>
</entry>
<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>
