Esempio n. 1
0
 public void ReturnWriter(PacketWriter writer)
 {
     DataStreamPool.Return(writer.NetworkStream);
     DataStreamPool.Return(writer.PacketStream);
 }
Esempio n. 2
0
 public bool Send(PacketWriter packetWriter)
 {
     return(Send(packetWriter.GetBuffer()));
 }
Esempio n. 3
0
        public PacketWriter TakeWriter()
        {
            var writer = new PacketWriter(DataStreamPool.Take(), DataStreamPool.Take());

            return(writer);
        }