MCPcopy
hub / github.com/opencontainers/runc / WritePacket

Method WritePacket

libcontainer/sync_unix.go:41–43  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

39}
40
41func (s *syncSocket) WritePacket(b []byte) (int, error) {
42 return s.f.Write(b)
43}
44
45func (s *syncSocket) ReadPacket() ([]byte, error) {
46 size, _, err := linux.Recvfrom(int(s.f.Fd()), nil, unix.MSG_TRUNC|unix.MSG_PEEK)

Callers 1

doWriteSyncFunction · 0.80

Calls 1

WriteMethod · 0.80

Tested by

no test coverage detected