MCPcopy Create free account
hub / github.com/chain/txvm / clone

Method clone

crypto/sha3/sha3.go:69–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67}
68
69func (d *state) clone() *state {
70 ret := *d
71 if ret.state == spongeAbsorbing {
72 ret.buf = ret.storage[:len(ret.buf)]
73 } else {
74 ret.buf = ret.storage[d.rate-cap(d.buf) : d.rate]
75 }
76
77 return &ret
78}
79
80// permute applies the KeccakF-1600 permutation. It handles
81// any input-output buffering.

Callers 2

CloneMethod · 0.95
SumMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected