MCPcopy Create free account
hub / github.com/tailscale/tailscale / Write

Method Write

control/controlbase/conn_test.go:71–77  ·  view source on GitHub ↗
(bs []byte)

Source from the content-addressed store, hash-verified

69}
70
71func (c *bufferedWriteConn) Write(bs []byte) (int, error) {
72 n, err := c.w.Write(bs)
73 if err == nil && !c.manualFlush {
74 err = c.w.Flush()
75 }
76 return n, err
77}
78
79// TestFastPath exercises the Read codepath that can receive multiple
80// Noise frames at once and decode each in turn without making another

Callers

nothing calls this directly

Calls 2

WriteMethod · 0.65
FlushMethod · 0.45

Tested by

no test coverage detected