コード例 #1
0
ファイル: AbstractIoBuffer.cs プロジェクト: xlg210/Mina.NET
 /// <summary>
 ///
 /// </summary>
 protected AbstractIoBuffer(AbstractIoBuffer parent, Int32 mark, Int32 pos, Int32 lim, Int32 cap)
     : base(mark, pos, lim, cap)
 {
     _allocator         = parent._allocator;
     _recapacityAllowed = false;
     _derived           = true;
     _minimumCapacity   = parent._minimumCapacity;
 }
コード例 #2
0
 /// <summary>
 /// 
 /// </summary>
 protected AbstractIoBuffer(AbstractIoBuffer parent, Int32 mark, Int32 pos, Int32 lim, Int32 cap)
     : base(mark, pos, lim, cap)
 {
     _allocator = parent._allocator;
     _recapacityAllowed = false;
     _derived = true;
     _minimumCapacity = parent._minimumCapacity;
 }
コード例 #3
0
 /// <summary>
 /// 
 /// </summary>
 protected AbstractIoBuffer(IoBufferAllocator allocator, Int32 mark, Int32 pos, Int32 lim, Int32 cap)
     : base(mark, pos, lim, cap)
 {
     _allocator = allocator;
     _recapacityAllowed = true;
     _derived = false;
     _minimumCapacity = cap;
 }
コード例 #4
0
ファイル: AbstractIoBuffer.cs プロジェクト: xlg210/Mina.NET
 /// <summary>
 ///
 /// </summary>
 protected AbstractIoBuffer(IoBufferAllocator allocator, Int32 mark, Int32 pos, Int32 lim, Int32 cap)
     : base(mark, pos, lim, cap)
 {
     _allocator         = allocator;
     _recapacityAllowed = true;
     _derived           = false;
     _minimumCapacity   = cap;
 }
コード例 #5
0
ファイル: ByteBuffer.cs プロジェクト: smeshlink/Misty.NET
 public ByteBuffer(IoBufferAllocator allocator, Byte[] buf, Int32 off, Int32 len)
     : this(allocator, -1, off, off + len, buf.Length, buf, 0)
 { }
コード例 #6
0
ファイル: ByteBuffer.cs プロジェクト: smeshlink/Misty.NET
 public ByteBuffer(IoBufferAllocator allocator, Int32 cap, Int32 lim)
     : this(allocator, -1, 0, lim, cap, new Byte[cap], 0)
 { }
コード例 #7
0
ファイル: ByteBuffer.cs プロジェクト: smeshlink/Misty.NET
 /// <summary>
 /// Creates a new buffer with the given mark, position, limit, capacity,
 /// backing array, and array offset
 /// </summary>
 public ByteBuffer(IoBufferAllocator allocator, Int32 mark, Int32 pos, Int32 lim, Int32 cap, Byte[] hb, Int32 offset)
     : base(allocator, mark, pos, lim, cap)
 {
     this._hb = hb;
     this._offset = offset;
 }
コード例 #8
0
ファイル: ByteBufferR.cs プロジェクト: zhangf911/Mina.NET
 ByteBufferR(IoBufferAllocator allocator, Int32 cap, Int32 lim)
     : base(allocator, cap, lim)
 {
     _readOnly = true;
 }
コード例 #9
0
ファイル: ByteBufferR.cs プロジェクト: zhangf911/Mina.NET
 ByteBufferR(IoBufferAllocator allocator, Byte[] buf, Int32 off, Int32 len)
     : base(allocator, buf, off, len)
 {
     _readOnly = true;
 }
コード例 #10
0
 /// <summary>
 /// </summary>
 public SocketAsyncEventArgsBuffer(IoBufferAllocator allocator, Byte[] buffer, Int32 offset, Int32 count)
     : base(allocator, -1, 0, count, buffer.Length)
 {
     _socketAsyncEventArgs = new SocketAsyncEventArgs();
     _socketAsyncEventArgs.SetBuffer(buffer, offset, count);
 }
コード例 #11
0
ファイル: ByteBuffer.cs プロジェクト: xlg210/Mina.NET
 public ByteBuffer(IoBufferAllocator allocator, Byte[] buf, Int32 off, Int32 len)
     : this(allocator, -1, off, off + len, buf.Length, buf, 0)
 {
 }
コード例 #12
0
ファイル: ByteBuffer.cs プロジェクト: xlg210/Mina.NET
 public ByteBuffer(IoBufferAllocator allocator, Int32 cap, Int32 lim)
     : this(allocator, -1, 0, lim, cap, new Byte[cap], 0)
 {
 }
コード例 #13
0
ファイル: ByteBuffer.cs プロジェクト: xlg210/Mina.NET
 /// <summary>
 /// Creates a new buffer with the given mark, position, limit, capacity,
 /// backing array, and array offset
 /// </summary>
 public ByteBuffer(IoBufferAllocator allocator, Int32 mark, Int32 pos, Int32 lim, Int32 cap, Byte[] hb, Int32 offset)
     : base(allocator, mark, pos, lim, cap)
 {
     this._hb     = hb;
     this._offset = offset;
 }
コード例 #14
0
ファイル: ByteBufferR.cs プロジェクト: xlg210/Mina.NET
 ByteBufferR(IoBufferAllocator allocator, Int32 cap, Int32 lim)
     : base(allocator, cap, lim)
 {
     _readOnly = true;
 }
コード例 #15
0
ファイル: ByteBufferR.cs プロジェクト: xlg210/Mina.NET
 ByteBufferR(IoBufferAllocator allocator, Byte[] buf, Int32 off, Int32 len)
     : base(allocator, buf, off, len)
 {
     _readOnly = true;
 }
コード例 #16
0
 public SocketAsyncEventArgsBuffer(IoBufferAllocator allocator, Int32 cap, Int32 lim)
     : this(allocator, new Byte[cap], 0, lim)
 { }
コード例 #17
0
 public SocketAsyncEventArgsBuffer(IoBufferAllocator allocator, Byte[] buffer, Int32 offset, Int32 count)
     : base(allocator, -1, 0, count, buffer.Length)
 {
     _socketAsyncEventArgs = new SocketAsyncEventArgs();
     _socketAsyncEventArgs.SetBuffer(buffer, offset, count);
 }
コード例 #18
0
 /// <summary>
 /// </summary>
 public SocketAsyncEventArgsBuffer(IoBufferAllocator allocator, Int32 cap, Int32 lim)
     : this(allocator, new Byte[cap], 0, lim)
 {
 }