-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
readdlm(bytearray) shouldn't modify bytearray #32255
Conversation
Actually |
We have |
Oh wait, of course that isn't possible in general. And in fact, the current code already makes a copy sometimes, if the Vector isn't backed by a String. We can instead change it to always make 1 copy (instead of 1 or 2) using |
Co-Authored-By: Jeff Bezanson <jeff.bezanson@gmail.com>
Good to merge? |
Fine with me. |
* readdlm(bytearray) shouldn't modify bytearray * Update stdlib/DelimitedFiles/src/DelimitedFiles.jl Co-Authored-By: Jeff Bezanson <jeff.bezanson@gmail.com> (cherry picked from commit 7038210)
* readdlm(bytearray) shouldn't modify bytearray * Update stdlib/DelimitedFiles/src/DelimitedFiles.jl Co-Authored-By: Jeff Bezanson <jeff.bezanson@gmail.com> (cherry picked from commit 7038210)
* readdlm(bytearray) shouldn't modify bytearray * Update stdlib/DelimitedFiles/src/DelimitedFiles.jl Co-Authored-By: Jeff Bezanson <jeff.bezanson@gmail.com> (cherry picked from commit 7038210)
* readdlm(bytearray) shouldn't modify bytearray * Update stdlib/DelimitedFiles/src/DelimitedFiles.jl Co-Authored-By: Jeff Bezanson <jeff.bezanson@gmail.com> (cherry picked from commit 7038210)
Fixes bug reported in #16731 (comment) by @bkamins.
(Would be nice to do this without making a copy of the data, but I don't see any way to do this without adding a new C routine.)