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>>(); }
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; }