Open mna opened 10 years ago
You could do some combination of bytes.NewReader
and io.MultiReader
.
I see what you mean. Read the signature bytes, create a reader off of those bytes, and combine those bytes with the rest of the reader using a multireader. Sounds like a good idea, thanks!
Currently, bytecode.IsBytecode() only works for io.ReadSeeker types, but the Ctx.Load() can only guarantee an io.Reader. Other way to do this?