mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-31 15:32:36 +00:00
d347099942
The protowire.{ConsumeBytes,ConsumeString} funcs are identical except that the latter allocates a string by implicitly converting the []byte. Avoid using ConsumeString since we can do the conversion ourselves at a latter point and sometimes avoid the allocation. Change-Id: Idf31edc013b72ee5ee8461a68d10e57ad461d95c Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/263628 Trust: Joe Tsai <joetsai@digital-static.net> Reviewed-by: Damien Neil <dneil@google.com>