示例#1
0
 public BufferWriteStream(MemoryPool <byte> _memoryPool, ISend send, IAsyncSend asyncSend)
 {
     //this.MemoryPool = memoryPool;
     Send        = send;
     AsyncSend   = asyncSend;
     DataSegment = new List <ArraySegment <byte> >();
     // MemoryOwners = new List<IMemoryOwner<byte>>();
 }
示例#2
0
 public ZYSocketAsyncEventArgs(IFiberReadStream r_stream, IFiberWriteStream w_stream, ISend send, IAsyncSend asyncsend, MemoryPool <byte> memoryPool, Encoding encoding, ISerialization objFormat = null, bool isLittleEndian = false)
 {
     this.MemoryPool      = memoryPool;
     this.RStream         = r_stream;
     this.WStream         = w_stream;
     this.Encoding        = encoding;
     this.ObjFormat       = objFormat;
     base.Completed      += ZYSocketAsyncEventArgs_Completed;
     IsLittleEndian       = isLittleEndian;
     SendImplemented      = send;
     AsyncSendImplemented = asyncsend;
 }