Hello, how to serialize data directly to my custom IO without using IOBuffer ?
I just copy serialized data bytes from IOBuffer to custom IO object.
seriously ? nobody tried it?
I have not tried this but I would expect that you would need to implement methods for the functions that IOBuffer
supports for your custom IO. Functions like take!
and write
.
You can use reflection to find all the functions of IOBuffer
:
https://docs.julialang.org/en/v1/stdlib/InteractiveUtils/#InteractiveUtils.methodswith
1 Like