commit | 316febd1ab5f96d4223979c1c6de8a9c02435c56 | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Sun Feb 09 12:26:50 2020 -0800 |
committer | Damien Neil <dneil@google.com> | Wed Feb 12 18:34:15 2020 +0000 |
tree | cd072398ab97d912f41e8d1d213f3e10d79c0709 | |
parent | f26172248d71952940c147431ff5598dea7c882e [diff] |
internal/impl: pass *coderFieldInfo into fast-path functions Refactor the fast-path size, marshal, unmarshal, and isinit functions to take the *coderFieldInfo for the field as input. This replaces a number of closures capturing field-specific information with functions taking that information as an explicit parameter. Change-Id: I8cb39701265edb7b673f6f04a0152d5f4dbb4d5d Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/218937 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.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.