Sizeof() 정적인 개인적인 메소드

static private Sizeof ( RequestType type ) : int
type RequestType
리턴 int
예제 #1
0
        public void QueueWork(Action callback, Action after)
        {
            var pr     = new PermaRequest(UV.Sizeof(UvRequestType.UV_WORK));
            var before = new CAction <IntPtr>((ptr) => callback());
            var cafter = new CAction <IntPtr>((ptr) => {
                pr.Dispose();
                if (after != null)
                {
                    after();
                }
            });

            int r = uv_queue_work(Handle, pr.Handle, before.Callback, cafter.Callback);

            Ensure.Success(r, this);
        }
예제 #2
0
 internal UVStream(Loop loop, UvHandleType type)
     : this(loop, UV.Sizeof(type))
 {
 }
예제 #3
0
 public FileSystemRequest()
     : base(Size)
 {
     fsrequest = (uv_fs_t *)(Handle + UV.Sizeof(RequestType.UV_REQ));
 }
예제 #4
0
 internal Handle(Loop loop, UvHandleType type)
     : this(loop, UV.Sizeof(type))
 {
 }
예제 #5
0
 public CallbackPermaRequest(RequestType type)
     : this(UV.Sizeof(type))
 {
 }
예제 #6
0
 public CallbackPermaRequest(UvRequestType type, bool allocate)
     : this(UV.Sizeof(type), allocate)
 {
 }