Single shot decoding
Single shot encoding
Read messages with length-prefix framing from the provided Reader. Returns the number of bytes read and io.EOF if ReadMessage is called exactly on the end of a stream.
Write messages with length-prefix framing to the provider Writer. Returns the number of bytes written.
Centralise proto.Buffer constructor. gogo protobuf freaks out about deterministic marshalling on objects with custom marshallers so we use google protobuf here