public Packet(PacketHeader header, MemoryStream memoryStream) { Header = header; Stream = memoryStream; Reader = new Reader(Stream); Writer = new Writer(Stream); }
public Packet(PacketHeader header) : this(header, new MemoryStream()) { }
public Packet(PacketHeader header, byte[] datas) : this(header, new MemoryStream(datas)) { }