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

Method Read

crypto/sha3/tuple_hash.go:125–133  ·  view source on GitHub ↗
(out []byte)

Source from the content-addressed store, hash-verified

123}
124
125func (t *thash) Read(out []byte) (n int, err error) {
126 n = 0
127 if !t.lengthEmitted {
128 n = t.encodeOutputLength()
129 t.lengthEmitted = true
130 }
131 m, err := t.d.Read(out)
132 return n + m, err
133}
134
135// Sum applies padding to the hash state and then squeezes out the desired
136// number of output bytes.

Callers 3

TupleHash128Function · 0.45
TupleHash256Function · 0.45
SumMethod · 0.45

Calls 1

encodeOutputLengthMethod · 0.95

Tested by

no test coverage detected