| | 4 | |
| | 5 | Additional notes: |
| | 6 | There are three TODOs remaining in attachment:17177.7.protobuf.patch |
| | 7 | |
| | 8 | Two are the same (`ProtoBufRecord#asFixed{32,64}`), and has to do with what should happen if the actual wiretype isn't the appropriate type. I'm inclined to throw an exception, but feedback would be appreciated on that. |
| | 9 | |
| | 10 | The last is for `ProtoBufParser#convertLong`, and has to do with booleans. The specification for protobuf buffers indicates that booleans (and enums) are of the VarInt type, and I'm inclined to treat booleans like I'm treating enums, and let the consumer convert the number to a boolean. |