Merge pull request #8578
07f8e9e
epee: dont shrink slice when storing to binary [release] (Jeffrey Ryan)
This commit is contained in:
commit
5d4ace8cae
|
@ -49,7 +49,7 @@ namespace serialization
|
||||||
byte_stream ss;
|
byte_stream ss;
|
||||||
ss.reserve(initial_buffer_size);
|
ss.reserve(initial_buffer_size);
|
||||||
store_to_binary(ss);
|
store_to_binary(ss);
|
||||||
target = epee::byte_slice{std::move(ss)};
|
target = epee::byte_slice{std::move(ss), false};
|
||||||
return true;
|
return true;
|
||||||
CATCH_ENTRY("portable_storage::store_to_binary", false);
|
CATCH_ENTRY("portable_storage::store_to_binary", false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue