MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / Read

Method Read

crypto/internal/benchmarking/bench.go:18–23  ·  view source on GitHub ↗
(buf []byte)

Source from the content-addressed store, hash-verified

16type zeroReader struct{}
17
18func (zeroReader) Read(buf []byte) (int, error) {
19 for i := range buf {
20 buf[i] = 0
21 }
22 return len(buf), nil
23}
24
25// BenchmarkKeyGeneration benchmarks the given key generation algorithm using
26// a dummy reader.

Callers 5

randBytesFunction · 0.45
TestKeyPathFunction · 0.45
TestRandomFunction · 0.45
nBytesFunction · 0.45
DecodeMethod · 0.45

Calls

no outgoing calls

Tested by 3

TestKeyPathFunction · 0.36
TestRandomFunction · 0.36
nBytesFunction · 0.36