protobuf-go/internal
Damien Neil f0831e87e2 internal/impl: change unmarshal func return to unmarshalOptions
The fast-path unmarshal funcs return the number of bytes consumed.

Change these functions to return an unmarshalOutput struct instead, to
make it easier to add to the results. This is groundwork for allowing
the fast-path unmarshaler to indicate when the unmarshaled message is
known to be initialized.

Change-Id: Ia8c44731a88f5be969a55cd98ea26282f412c7ae
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/215720
Reviewed-by: Joe Tsai <joetsai@google.com>
2020-01-22 00:22:58 +00:00
..
benchmarks benchmarks: rename to internal/benchmarks 2020-01-09 18:21:53 +00:00
cmd internal/impl: change unmarshal func return to unmarshalOptions 2020-01-22 00:22:58 +00:00
conformance encoding/prototext: add MarshalOptions.EmitUnknown 2019-09-17 02:56:29 +00:00
descfmt internal: improve use of detrand in descfmt and errors 2019-09-09 18:30:00 +00:00
descopts
detrand internal: improve use of detrand in descfmt and errors 2019-09-09 18:30:00 +00:00
encoding internal/encoding/json: fix performance cliff when decoding large integers that will go out of range. 2020-01-08 18:44:43 +00:00
errors internal: improve use of detrand in descfmt and errors 2019-09-09 18:30:00 +00:00
fieldnum
fieldsort proto, internal/impl: make wire output more consistent with v1 2019-11-12 20:59:03 +00:00
filedesc internal/testprotos/legacy: rename and regenerate 2020-01-12 08:13:18 +00:00
filetype reflect/protoregistry: add (*Types).Register{Message,Enum,Extension} 2019-10-31 16:23:42 +00:00
flags all: rename tag and flags for legacy support 2019-08-08 20:49:00 +00:00
fuzz internal/impl: add message validator 2020-01-07 21:36:47 +00:00
fuzztest internal/fuzztest: factor out common fuzzer tests 2019-12-20 22:08:10 +00:00
genname internal/genname: centralize the definitions for generated names 2019-12-09 22:57:38 +00:00
impl internal/impl: change unmarshal func return to unmarshalOptions 2020-01-22 00:22:58 +00:00
mapsort internal/testprotos/legacy: rename and regenerate 2020-01-12 08:13:18 +00:00
pragma
protolegacy reflect/protoregistry: add (*Types).Register{Message,Enum,Extension} 2019-10-31 16:23:42 +00:00
set
strs compiler/protogen, internal/strs, internal/impl: expose enum Go name derivation 2019-08-26 17:49:17 +00:00
testprotos all: add ProtoMethods method to protoreflect.Message 2020-01-21 21:05:54 +00:00