static private Alloc ( HandleType type ) : |
||
type | HandleType | |
return |
unsafe internal static UnixBufferStruct DebugAlloc(IntPtr handle, int size) { UnixBufferStruct tmp = UV.Alloc(handle, size); Console.WriteLine(tmp.@base); return(tmp); }
static IntPtr CreateLoop() { IntPtr ptr = UV.Alloc(uv_loop_size().ToInt32()); int r = uv_loop_init(ptr); Ensure.Success(r); return(ptr); }
public BaseHandle(int size, Func <IntPtr, int> init, Action <IntPtr> destroy) { Handle = UV.Alloc(size); if (init != null) { int r = init(Handle); Ensure.Success(r); } this.destroy = destroy; }
protected PermaRequest(IntPtr handle, bool allocate) { Handle = handle; request = (uv_req_t *)handle; Data = IntPtr.Zero; if (allocate) { Data = UV.Alloc(sizeof(GCHandle)); } GCHandle = GCHandle.Alloc(this, GCHandleType.Normal); }
internal UVStream(Loop loop, int size) : this(loop, UV.Alloc(size)) { }
internal Handle(Loop loop, int size) : this(loop, UV.Alloc(size)) { }
public PermaRequest(int size, bool allocate) : this(UV.Alloc(size), allocate) { }
internal HandleFileDescriptor(Loop loop, int size) : this(loop, UV.Alloc(size)) { }
public PermaRequest(int size) : this(UV.Alloc(size)) { }
public BaseHandle(int size) { Handle = UV.Alloc(size); }