func (binaryProtocol) EncodeEnveloped(e wire.Envelope, w io.Writer) error { writer := binary.BorrowWriter(w) err := writer.WriteEnveloped(e) binary.ReturnWriter(writer) return err }
func (binaryProtocol) Encode(v wire.Value, w io.Writer) error { writer := binary.BorrowWriter(w) err := writer.WriteValue(v) binary.ReturnWriter(writer) return err }