mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-01 03:14:16 +00:00
fb30439f55
The protobuf wire format is insufficiently self-decribing such that it is impossible to know whether for sure whether an unknown bytes value is a sub-message or not. However, protopack is primarily used for debugging where a best-effort guess is still very useful. The Message.UnmarshalAbductive unmarshals an unknown bytes value as a message if it is syntactically well-formed. Otherwise, it is left as is. Change-Id: I5e2b4b995e2b5eb60942a242558bf4cea1da9891 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/309669 Trust: Joe Tsai <joetsai@digital-static.net> Reviewed-by: Damien Neil <dneil@google.com> |
||
---|---|---|
.. | ||
benchmarks | ||
cmd | ||
conformance | ||
descfmt | ||
descopts | ||
detrand | ||
encoding | ||
errors | ||
filedesc | ||
filetype | ||
flags | ||
fuzz | ||
fuzztest | ||
genid | ||
impl | ||
msgfmt | ||
order | ||
pragma | ||
protobuild | ||
protolegacy | ||
set | ||
strs | ||
testprotos | ||
version | ||
weakdeps |