#How to make a custom Io.Writer impl
1 messages · Page 1 of 1 (latest)
the vtable has docs for what the functions are supposed to do, read them carefully
can also look at other writers in std as examples
ok thanks
for Writer.Hashed, the underlying Writer should be unbuffered. Surely for my use case I want buffering in the underlying writer since it writes to a socket, and no buffering in my PacketWriter?
I guess that works? Anyway I will have a look
I am not sure what what exactly you mean by underlying writer and PacketWriter, so I cant comment on where buffers should be