public PipeMessage(PipeCommand cmd, PipeFunction fun, int sockid, byte[] data, int extra = 0) { Header = new PipeMessageHeader { Command = cmd, Function = fun, SocketId = sockid, DataSize = data?.Length ?? 0, Extra = extra, }; Data = data; }
private PipeMessage(PipeMessageHeader hdr, byte[] data) { Header = hdr; Data = data; }