MCPcopy
hub / github.com/dropbox/godropbox / reader

Function reader

cinterop/test/client.go:17–26  ·  view source on GitHub ↗
(r io.Reader)

Source from the content-addressed store, hash-verified

15)
16
17func reader(r io.Reader) {
18 buf := make([]byte, 1024)
19 for {
20 n, err := r.Read(buf[:])
21 if err != nil {
22 return
23 }
24 println("Client got:", string(buf[0:n]))
25 }
26}
27
28func main() {
29 srv := exec.Command("./example")

Callers 3

doTestParallelReadersFunction · 0.85
stressRWMutexFunction · 0.85
mainFunction · 0.85

Calls 1

ReadMethod · 0.45

Tested by 2

doTestParallelReadersFunction · 0.68
stressRWMutexFunction · 0.68