go-capnp icon indicating copy to clipboard operation
go-capnp copied to clipboard

Message should io.WriterTo and io.ReaderFrom

Open lthibault opened this issue 2 years ago • 1 comments

As per #257 this effort would avoid the need to instantiate an encoder/decoder for single messages.

@zenhack My interpretation of your comment is that this is pure syntactic sugar, and so I would expect these methods to instantiate and call an encoder/decoder under the hood. Have I correctly understood your intent?

lthibault avatar Jul 11 '22 15:07 lthibault

Yes, that's what I had in mind.

zenhack avatar Jul 11 '22 16:07 zenhack