Пример #1
0
 internal static IntPtr Alloc(HandleType type)
 {
     return(Alloc(Handle.Size(type)));
 }
Пример #2
0
 internal UVStream(Loop loop, HandleType type)
     : this(loop, Handle.Size(type))
 {
 }
Пример #3
0
 internal UVStream(Loop loop, IntPtr handle)
     : base(loop, handle)
 {
     stream = (uv_stream_t *)(handle.ToInt64() + Handle.Size(HandleType.UV_HANDLE));
 }
Пример #4
0
 internal HandleBase(Loop loop, HandleType type)
     : this(loop, Handle.Size(type))
 {
 }
Пример #5
0
 unsafe internal Pipe(Loop loop, bool interProcessCommunication)
     : base(loop, HandleType.UV_NAMED_PIPE, NativeMethods.uv_pipe_init, interProcessCommunication ? 1 : 0)
 {
     pipe_t = (uv_pipe_t *)(this.NativeHandle.ToInt64() + Handle.Size(HandleType.UV_STREAM));
 }
Пример #6
0
 internal Handle(Loop loop, HandleType handleType)
     : this(loop, Handle.Size(handleType))
 {
 }