MCPcopy
hub / github.com/MetaCubeX/mihomo / WaitReadFrom

Method WaitReadFrom

common/net/packet/ref.go:14–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12}
13
14func (c *refPacketConn) WaitReadFrom() (data []byte, put func(), addr net.Addr, err error) {
15 defer runtime.KeepAlive(c.ref)
16 return c.pc.WaitReadFrom()
17}
18
19func (c *refPacketConn) ReadFrom(p []byte) (n int, addr net.Addr, err error) {
20 defer runtime.KeepAlive(c.ref)

Callers

nothing calls this directly

Calls 1

WaitReadFromMethod · 0.65

Tested by

no test coverage detected