diff options
| author | Filippo Valsorda <filippo@golang.org> | 2020-04-27 21:52:38 -0400 |
|---|---|---|
| committer | Filippo Valsorda <filippo@golang.org> | 2020-05-05 00:36:44 +0000 |
| commit | c9d5f60eaa4450ccf1ce878d55b4c6a12843f2f3 (patch) | |
| tree | 099593dca9e78212c29c48640fe0427c24f9e31c /src/runtime | |
| parent | b5f7ff4aa9c1fef6437f350595caae4ee4b5708d (diff) | |
| download | go-c9d5f60eaa4450ccf1ce878d55b4c6a12843f2f3.tar.xz | |
math/big: add (*Int).FillBytes
Replaced almost every use of Bytes with FillBytes.
Note that the approved proposal was for
func (*Int) FillBytes(buf []byte)
while this implements
func (*Int) FillBytes(buf []byte) []byte
because the latter was far nicer to use in all callsites.
Fixes #35833
Change-Id: Ia912df123e5d79b763845312ea3d9a8051343c0a
Reviewed-on: https://go-review.googlesource.com/c/go/+/230397
Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions
