summaryrefslogtreecommitdiff
path: root/contrib/epee/src/byte_slice.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Copyright: Update to 2022mj-xmr2022-03-041-1/+1
|
* clang: fix -Wrange-loop-analysis warningsselsta2021-04-271-2/+2
|
* Allow byte_stream->byte_slice conversion to shrink unused buffer spaceLee Clagett2020-10-131-4/+20
|
* Merge pull request #6559luigi11112020-07-081-1/+4
|\ | | | | | | 15538f7 ByteSlice: Fix persisting ptr to std::moved SSO buffer (Doy-lee)
| * ByteSlice: Fix persisting ptr to std::moved SSO bufferDoyle2020-05-201-1/+4
| | | | | | | | | | | | | | 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.
* | Fixed bugs for take_slice and byte_stream->byte_sliceLee Clagett2020-05-121-9/+17
|/
* Add byte_stream for zero-copy serialization, and add support in ZMQ-JSON.Lee Clagett2020-04-111-1/+41
|
* Use byte_slice for sending zmq messages - removes data copy within zmqLee Clagett2020-04-031-4/+15
|
* Add ref-counted buffer byte_slice. Currently used for sending TCP data.Lee Clagett2019-07-161-0/+209