Documentation ¶ Index ¶ Constants func Read(r io.Reader) ([]byte, error) func Write(w io.Writer, data []byte) error Constants ¶ View Source const MaxMessageSize = 1 << 20 MaxMessageSize is the maximum IPC message size (1MB). Variables ¶ This section is empty. Functions ¶ func Read ¶ func Read(r io.Reader) ([]byte, error) Read reads a length-prefixed IPC message from r. func Write ¶ func Write(w io.Writer, data []byte) error Write writes a length-prefixed IPC message to w. It is safe for concurrent use: the length prefix and payload are written as an atomic unit, preventing interleaving when callers share the same writer across goroutines. Types ¶ This section is empty. Source Files ¶ View all Source files ipcutil.go Click to show internal directories. Click to hide internal directories.