Probably unnecessary backstory: I need to read a bunch of files from a zip archive and then pass them to a Threads.@threads for loop. Unfortunately this doesn’t work. My guess is that the datatype created by ZipFile is not thread safe. So I would like to read each file into memory sequentially, create an IOBuffer for each of them, and then iterate over these using the @threads macro.
I can read each file to a String, but that’s where I get stuck. IOBuffer doesn’t seem to have any functions that allow you to create a buffer backed by a string.
Is there any way to create an IOBuffer backed by a String? Along the lines of
data = "my data" io = IOBuffer(data) # no such constructor