mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
hash: mention encoding.BinaryAppender in Hash docs
For #62384
Change-Id: I4eeb83a4708544777815eacd6a5b6d293580c5e5
GitHub-Last-Rev: 6fdb6db481
GitHub-Pull-Request: golang/go#68758
Reviewed-on: https://go-review.googlesource.com/c/go/+/603405
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
de40308ad2
commit
48a1f6989c
1 changed files with 2 additions and 2 deletions
|
|
@ -10,8 +10,8 @@ import "io"
|
|||
// Hash is the common interface implemented by all hash functions.
|
||||
//
|
||||
// Hash implementations in the standard library (e.g. [hash/crc32] and
|
||||
// [crypto/sha256]) implement the [encoding.BinaryMarshaler] and
|
||||
// [encoding.BinaryUnmarshaler] interfaces. Marshaling a hash implementation
|
||||
// [crypto/sha256]) implement the [encoding.BinaryMarshaler], [encoding.BinaryAppender]
|
||||
// and [encoding.BinaryUnmarshaler] interfaces. Marshaling a hash implementation
|
||||
// allows its internal state to be saved and used for additional processing
|
||||
// later, without having to re-write the data previously written to the hash.
|
||||
// The hash state may contain portions of the input in its original form,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue