mirror of
https://github.com/monero-project/monero.git
synced 2025-06-01 09:54:24 -04:00
Allow byte_stream->byte_slice conversion to shrink unused buffer space
This commit is contained in:
parent
83f1d863bd
commit
249eae5f4a
3 changed files with 24 additions and 6 deletions
|
@ -112,7 +112,7 @@ namespace epee
|
|||
explicit byte_slice(std::string&& buffer);
|
||||
|
||||
//! Convert `stream` into a slice with zero allocations.
|
||||
explicit byte_slice(byte_stream&& stream) noexcept;
|
||||
explicit byte_slice(byte_stream&& stream, bool shrink = true);
|
||||
|
||||
byte_slice(byte_slice&& source) noexcept;
|
||||
~byte_slice() noexcept = default;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue