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: Dec 28 2024 at 04:38 UTC