Ejemplo n.º 1
0
        public UVWriteRequest()
        {
            Int32 requestSize = UVIntrop.req_size(UVRequestType.WRITE);
            var   bufferSize  = Marshal.SizeOf(typeof(UVIntrop.uv_buf_t)) * QUEUE_SIZE;

            this.mPins = new GCHandle[QUEUE_SIZE];
            CreateMemory(requestSize + bufferSize);
            this.mBuffer = (UVIntrop.uv_buf_t *)(this.handle + requestSize);
        }
Ejemplo n.º 2
0
 protected void CreateRequest(UVRequestType type)
 {
     CreateMemory(UVIntrop.req_size(type));
 }