protobuf-go/proto
Michael Stapelberg 55891d73cf proto: add examples for Size, MarshalAppend (regarding allocations)
Hopefully this gives users a better understanding of the MarshalAppend
entrypoint and what it can be used for, as well as the typical Size usage.

Change-Id: I26c9705c3d1dbfea5f30820d41ccabbb88fbb772
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/573361
Reviewed-by: Lasse Folger <lassefolger@google.com>
Auto-Submit: Michael Stapelberg <stapelberg@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cassondra Foesch <cfoesch@gmail.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-04-02 08:46:54 +00:00
..
bench_test.go
checkinit_test.go all: implement features.field_presence = LEGACY_REQUIRED support 2024-02-21 14:39:44 +00:00
checkinit.go
decode_gen.go
decode_test.go proto: extend Unmarshal documentation, include an example 2024-03-28 08:17:19 +00:00
decode.go proto: extend Unmarshal documentation, include an example 2024-03-28 08:17:19 +00:00
doc.go all: modernize documentation 2023-09-05 14:55:28 +00:00
encode_gen.go
encode_test.go proto: add examples for Size, MarshalAppend (regarding allocations) 2024-04-02 08:46:54 +00:00
encode.go proto: add examples for Size, MarshalAppend (regarding allocations) 2024-04-02 08:46:54 +00:00
equal_test.go proto: add more editions tests for proto.Size and proto.Equal 2024-02-21 08:36:29 +00:00
equal.go
extension_test.go internal/impl: ensure proto.HasExtension does not allocate 2024-03-28 16:31:28 +00:00
extension.go all: modernize documentation 2023-09-05 14:55:28 +00:00
fuzz_test.go proto: move explicit test as a seed into the fuzz test 2024-02-28 15:54:53 +00:00
merge_test.go
merge.go all: modernize documentation 2023-09-05 14:55:28 +00:00
messageset_test.go
messageset.go
methods_test.go
nil_test.go
noenforceutf8_test.go all: implement proto2/proto3 as editions [1/2] 2024-03-19 09:40:08 +00:00
proto_methods.go
proto_reflect.go
proto.go all: modernize documentation 2023-09-05 14:55:28 +00:00
reset_test.go
reset.go
size_gen.go
size_test.go proto: add examples for Size, MarshalAppend (regarding allocations) 2024-04-02 08:46:54 +00:00
size.go
testmessages_test.go proto: add editions tests for invalid messages 2024-02-22 08:59:49 +00:00
validate_test.go
weak_test.go
wrappers.go