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