Get rid of extra string allocation
We already have a pointer to data. No need to allocate a string and copy the data. It's enough to create a view over the buffer and create a stream from that.
Loading
Please sign in to comment
We already have a pointer to data. No need to allocate a string and copy the data. It's enough to create a view over the buffer and create a stream from that.