Пример #1
0
        public LibuvLoop()
        {
            _pool = LibuvBuffer.Default;
            var size       = LibuvManaged.uv_loop_size().ToInt32();
            var loopHandle = Marshal.AllocHGlobal(size); // this needs to be deallocated

            _handle = loopHandle;
        }
Пример #2
0
 LibuvLoop(IntPtr handle, LibuvBuffer pool)
 {
     _handle = handle;
     _pool   = pool;
 }