示例#1
0
 private static int _CalculateSize(UvHandleType handleType)
 {
     return(Libuv.uv_handle_size(handleType).ToInt32());
 }
示例#2
0
 /// <inheritdoc/>
 protected UvNetworkStream(UvLoop loop, UvHandleType handleType)
     : base(loop, handleType)
 {
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of libuv handle object.
 /// </summary>
 /// <param name="loop">Loop, on which this handle will be initialized.</param>
 /// <param name="handleType">Type of the handle.</param>
 protected UvHandle(UvLoop loop, UvHandleType handleType)
     : base(_CalculateSize(handleType), _GetLoopThreadId(loop))
 {
     this.HandleType = handleType;
     this.Loop       = loop;
 }
示例#4
0
 internal UVStream(Loop loop, UvHandleType type)
     : this(loop, UV.Sizeof(type))
 {
 }
示例#5
0
 internal Handle(Loop loop, UvHandleType type)
     : this(loop, UV.Sizeof(type))
 {
 }
示例#6
0
 internal static int Sizeof(UvHandleType type)
 {
     return uv_handle_size(type);
 }
示例#7
0
 internal static extern int uv_handle_size(UvHandleType type);
示例#8
0
 internal Handle(Loop loop, UvHandleType type)
     : this(loop, UV.Sizeof(type))
 {
 }
示例#9
0
 internal static IntPtr Alloc(UvHandleType type)
 {
     return Alloc(Sizeof(type));
 }
示例#10
0
 internal Listener(Loop loop, UvHandleType type)
     : base(loop, type)
 {
     DefaultBacklog = 128;
     listen_cb      = listen_callback;
 }
示例#11
0
 internal Listener(Loop loop, UvHandleType type)
     : base(loop, type)
 {
     DefaultBacklog = 128;
     listen_cb = listen_callback;
 }
示例#12
0
文件: Libuv.cs 项目: codecopy/NLibuv
 public static extern IntPtr uv_handle_size(UvHandleType type);
示例#13
0
 internal UVStream(Loop loop, UvHandleType type)
     : this(loop, UV.Sizeof(type))
 {
 }
示例#14
0
 internal static IntPtr Alloc(UvHandleType type)
 {
     return(Alloc(Sizeof(type)));
 }
示例#15
0
 internal static int Sizeof(UvHandleType type)
 {
     return(uv_handle_size(type));
 }
示例#16
0
 internal static extern int uv_handle_size(UvHandleType type);