Is there a way to read data from a binary stream directly into a pre-existing vector without making a copy? In Python, I can use the readinto method. Does Julia have anything similar?
Evizero
2
read!, readbytes!
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| read!(io,Vector{MyStruct} not equivalent to loop over read with eachindex | 4 | 196 | August 10, 2024 | |
| Read multiple variables from binary file at once | 6 | 915 | October 8, 2021 | |
| Reading binary file in julia 1.0 | 13 | 7973 | August 29, 2019 | |
| Possibly confusing or inconsistent methods for read() | 0 | 571 | February 14, 2017 | |
| Some tweaks about binary I/O plus some conversions | 4 | 925 | June 18, 2020 |