protobuf
protobuf copied to clipboard
Golang Encoder / Decoder interface
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.
Linked to https://github.com/dedis/protobuf/issues/3