mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2024-12-29 12:17:48 +00:00
37ef691e6b
Call the Marshal or Unmarshal method on legacy messages implementing protoV1.Marshaler or protoV2.Unmarshaler. We do this in the impl package by creating an appropriate function in the protoiface.Methods struct for legacy messages. In proto.MarshalAppend, return the bytes provided by the fast-path marshal function even when the returned error is non-nil. Fixes golang/protobuf#955 Change-Id: I36924af9ff959a946c43f2295ef3202216e81b32 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/197357 Reviewed-by: Joe Tsai <joetsai@google.com> |
||
---|---|---|
.. | ||
bench_test.go | ||
decode_gen.go | ||
decode_test.go | ||
decode.go | ||
doc.go | ||
encode_gen.go | ||
encode_test.go | ||
encode.go | ||
equal_test.go | ||
equal.go | ||
extension_test.go | ||
extension.go | ||
isinit_test.go | ||
isinit.go | ||
merge_test.go | ||
merge.go | ||
messageset_test.go | ||
messageset.go | ||
methods_test.go | ||
proto_methods.go | ||
proto_reflect.go | ||
proto.go | ||
reset_test.go | ||
reset.go | ||
size_gen.go | ||
size.go | ||
wrappers.go |