MCPcopy Create free account
hub / github.com/refraction-networking/utls / Read

Method Read

example_test.go:20–23  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

18type zeroSource struct{}
19
20func (zeroSource) Read(b []byte) (n int, err error) {
21 clear(b)
22 return len(b), nil
23}
24
25func ExampleDial() {
26 // Connecting with a custom root-certificate set.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected