PooledByteBuffer(ThreadLocalPool.Handle returnHandle, IByteBufferAllocator allocator, byte[] pooledArray, int maxCapacity) : base(allocator, pooledArray, 0, 0, maxCapacity) { this.length = pooledArray.Length; this.returnHandle = returnHandle; this.pooledArray = pooledArray; }
public WriteRequest(ThreadLocalPool.Handle recyclerHandle) : base(uv_req_type.UV_WRITE, 0) { this.recyclerHandle = recyclerHandle; this.handles = new List <GCHandle>(); this.bufferCount = 32; // Default to 32 slots this.bufs = new uv_buf_t[this.bufferCount]; this.bufsPin = GCHandle.Alloc(this.bufs, GCHandleType.Pinned); }
public WriteRequest(ThreadLocalPool.Handle recyclerHandle) : base(uv_req_type.UV_WRITE, BufferSize * MaximumLimit) { _recyclerHandle = recyclerHandle; int offset = NativeMethods.GetSize(uv_req_type.UV_WRITE); IntPtr addr = Handle; _maxBytes = MaximumBytes; _bufs = addr + offset; _pin = GCHandle.Alloc(addr, GCHandleType.Pinned); _handles = new List <MemoryHandle>(MaximumLimit + 1); }
public WriteRequest(ThreadLocalPool.Handle recyclerHandle) : base(uv_req_type.UV_WRITE, BufferSize * MaximumLimit) { this.recyclerHandle = recyclerHandle; int offset = NativeMethods.GetSize(uv_req_type.UV_WRITE); IntPtr addr = this.Handle; this.maxBytes = MaximumBytes; this.bufs = addr + offset; this.pin = GCHandle.Alloc(addr, GCHandleType.Pinned); this.handles = new List <GCHandle>(); }
internal WriteRequest(uv_req_type requestType, ThreadLocalPool.Handle recyclerHandle) : base(requestType) { Debug.Assert(requestType == uv_req_type.UV_WRITE || requestType == uv_req_type.UV_UDP_SEND); _requestContext = new RequestContext(requestType, BufferSize * MaximumLimit, this); _recyclerHandle = recyclerHandle; _handles = new List <GCHandle>(); IntPtr addr = _requestContext.Handle; _bufs = addr + _requestContext.HandleSize; _pin = GCHandle.Alloc(addr, GCHandleType.Pinned); _count = 0; }
protected AbstractWriteTask(ThreadLocalPool.Handle handle) : base(handle) { }
public RecyclableObject(ThreadLocalPool.Handle handle) { this.handle = handle; }
internal SendRequest(ThreadLocalPool.Handle recyclerHandle) : base(uv_req_type.UV_UDP_SEND) { this.recyclerHandle = recyclerHandle; }
public PooledByteBuffer(ThreadLocalPool.Handle returnHandle, IByteBufferAllocator allocator, int maxFixedCapacity, int maxCapacity) : this(returnHandle, allocator, new byte[maxFixedCapacity], maxCapacity) { }
protected AbstractPooledDerivedByteBuffer(ThreadLocalPool.Handle recyclerHandle) : base(0) { this.recyclerHandle = recyclerHandle; }
Entry(ThreadLocalPool.Handle handle) { this.handle = handle; }
private WriteTask(ThreadLocalPool.Handle handle) { _handle = handle; }
PendingWrite(ThreadLocalPool.Handle handle) { this.handle = handle; }
PendingWrite(ThreadLocalPool.Handle handle) { this.Messages = new List <object>(); this.handle = handle; }
Entry(ThreadLocalPool.Handle handle) { _handle = handle; }
public PooledDuplicatedByteBuffer(ThreadLocalPool.Handle recyclerHandle) : base(recyclerHandle) { }
protected RecyclableMpscLinkedQueueNode(ThreadLocalPool.Handle handle) { Contract.Requires(handle != null); this.handle = handle; }
internal HandledObject(ThreadLocalPool.Handle handle) { this.handle = handle; }
WriteTask(ThreadLocalPool.Handle handle) : base(handle) { }
PooledSlicedByteBuffer(ThreadLocalPool.Handle handle) : base(handle) { }
public Entry(ThreadLocalPool.Handle recyclerHandle) { _recyclerHandle = recyclerHandle; }
protected PooledByteBuffer(ThreadLocalPool.Handle recyclerHandle, int maxCapacity) : base(maxCapacity) { this.recyclerHandle = recyclerHandle; }
protected AbstractWriteTask(ThreadLocalPool.Handle handle) { this.handle = handle; }
private Segment(ThreadLocalPool.Handle recyclerHandle) { this.recyclerHandle = recyclerHandle; }
WriteAndFlushTask(ThreadLocalPool.Handle handle) : base(handle) { }
internal ArrayPooledUnsafeDirectByteBuffer(ThreadLocalPool.Handle recyclerHandle, int maxCapacity) : base(recyclerHandle, maxCapacity) { }
internal PooledArrayBuffer(ThreadLocalPool.Handle recyclerHandle, int capacity) : base(capacity) { this.recyclerHandle = recyclerHandle; this.Capacity = capacity; }
private WriteTask(ThreadLocalPool.Handle recyclerHandle) { this.recyclerHandle = recyclerHandle; }
internal RecyclableQueue(ThreadLocalPool.Handle handle) { _handle = handle; }
internal PooledHeapByteBuffer(ThreadLocalPool.Handle recyclerHandle, int maxCapacity) : base(recyclerHandle, maxCapacity) { }