go/src/encoding
Joe Tsai 35a92f92bd encoding/binary: add AppendVarint AppendUvarint
This adds a straight-forward implementation of the functionality.
A more performant version could be added that unrolls the loop
as is done in google.golang.org/protobuf/encoding/protowire,
but usages that demand high performance can use that package instead.

Fixes #51644

Change-Id: I9d3b615a60cdff47e5200e7e5d2276adf4c93783
Reviewed-on: https://go-review.googlesource.com/c/go/+/400176
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Joseph Tsai <joetsai@digital-static.net>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-04-15 01:19:37 +00:00
..
ascii85 all: remove trailing blank doc comment lines 2022-04-01 18:18:07 +00:00
asn1 all: replace `` and '' with “ (U+201C) and ” (U+201D) in doc comments 2022-04-05 17:52:29 +00:00
base32 all: replace `` and '' with “ (U+201C) and ” (U+201D) in doc comments 2022-04-05 17:52:29 +00:00
base64 all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
binary encoding/binary: add AppendVarint AppendUvarint 2022-04-15 01:19:37 +00:00
csv all: go fix -fix=buildtag std cmd (except for bootstrap deps, vendor) 2021-10-28 18:17:57 +00:00
gob all: gofmt main repo 2022-04-11 16:34:30 +00:00
hex encoding/hex: implement Decode with a lookup table 2022-03-11 21:51:20 +00:00
json all: gofmt main repo 2022-04-11 16:34:30 +00:00
pem encoding/pem: fix stack overflow in Decode 2022-04-12 15:19:32 +00:00
xml all: gofmt main repo 2022-04-11 16:34:30 +00:00
encoding.go