示例#1
0
文件: Packet.cs 项目: tgy/CSharp
 public Packet(PacketHeader header, MemoryStream memoryStream)
 {
     Header = header;
     Stream = memoryStream;
     Reader = new Reader(Stream);
     Writer = new Writer(Stream);
 }
示例#2
0
文件: Packet.cs 项目: tgy/CSharp
 public Packet(PacketHeader header)
     : this(header, new MemoryStream())
 {
 }
示例#3
0
文件: Packet.cs 项目: tgy/CSharp
 public Packet(PacketHeader header, byte[] datas)
     : this(header, new MemoryStream(datas))
 {
 }
示例#4
0
 public Packet(PacketHeader header) : this(header, new MemoryStream())
 {
 }
示例#5
0
 public Packet(PacketHeader header, byte[] datas) : this(header, new MemoryStream(datas))
 {
 }