commit | cadb4ab3b1c6d76d0e3c08bd0f0b35440342b367 | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Mon Feb 03 16:17:31 2020 -0800 |
committer | Damien Neil <dneil@google.com> | Wed Feb 05 05:32:50 2020 +0000 |
tree | 8646ec4c32736042567200f509aea24ac44453f7 | |
parent | 9b3d97c4736df34651b938ebe7b85ca85b3e4724 [diff] |
internal/impl: refactor validation a bit Return the size of the field read from the validator, permitting us to avoid an extra parse when skipping over groups. Return an UnmarshalOutput from the validator, since it already combines two of the validator outputs: bytes read and initialization status. Remove initialization status from the ValidationStatus enum, since it's covered by the UnmarshalOutput. Change-Id: I3e684c45d15aa1992d8dc3bde0f608880d34a94b Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/217763 Reviewed-by: Joe Tsai <joetsai@google.com>
WARNING: This repository is in active development. There are no guarantees about API stability. Breaking changes will occur until a stable release is made and announced.
This repository is for the development of the next major Go implementation of protocol buffers. This library makes breaking API changes relative to the existing Go protobuf library. Of particular note, this API aims to make protobuf reflection a first-class feature of the API and implements the protobuf ecosystem in terms of reflection.
List of relevant design documents:
We appreciate community contributions. See CONTRIBUTING.md.
Issues regarding the new API can be filed at github.com/golang/protobuf. Please use a APIv2:
prefix in the title to make it clear that the issue is regarding the new API work.