protobuf icon indicating copy to clipboard operation
protobuf copied to clipboard

Golang Encoder / Decoder interface

Open nikkolasg opened this issue 10 years ago • 1 comments

Would it be possible to implement an Encoder and Decoder interface for protobuf so we can use it like others encoding libraries ? For networking, it would mean a real improvement if we could have something

dec := protobuf.NewDecoder(conn)
dec.Decode(&value)

Instead of having to read all the bytes to a buffer and passing in protobuf.

nikkolasg avatar Dec 15 '15 15:12 nikkolasg

Linked to https://github.com/dedis/protobuf/issues/3

nikkolasg avatar May 29 '17 16:05 nikkolasg