mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 13:16:42 +00:00
Update blake2b.go
This commit is contained in:
parent
2e5cd21edf
commit
bbf418c69f
1 changed files with 0 additions and 13 deletions
|
|
@ -302,20 +302,7 @@ func appendUint64(b []byte, x uint64) []byte {
|
||||||
return append(b, a[:]...)
|
return append(b, a[:]...)
|
||||||
}
|
}
|
||||||
|
|
||||||
//nolint:unused
|
|
||||||
func appendUint32(b []byte, x uint32) []byte {
|
|
||||||
var a [4]byte
|
|
||||||
binary.BigEndian.PutUint32(a[:], x)
|
|
||||||
return append(b, a[:]...)
|
|
||||||
}
|
|
||||||
|
|
||||||
func consumeUint64(b []byte) ([]byte, uint64) {
|
func consumeUint64(b []byte) ([]byte, uint64) {
|
||||||
x := binary.BigEndian.Uint64(b)
|
x := binary.BigEndian.Uint64(b)
|
||||||
return b[8:], x
|
return b[8:], x
|
||||||
}
|
}
|
||||||
|
|
||||||
//nolint:unused
|
|
||||||
func consumeUint32(b []byte) ([]byte, uint32) {
|
|
||||||
x := binary.BigEndian.Uint32(b)
|
|
||||||
return b[4:], x
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue