This is a silly question, but I pretty frequently have to execute a pattern of creating an IOBuffer
, filling it with some stuff, and then I just want to read the whole thing from the beginning only once. There's no single function in Base
for reading it from the beginning is there? Otherwise you have to do seekstart
... it's a pretty trivial thing but I have to do this often enough that running the seekstart(io)
annoys me.
take!(io::IOBuffer)
.
ok, I feel really stupid, because I kind of knew about that, but just usually forget. but thanks!
Last updated: Nov 22 2024 at 04:41 UTC