Пример #1
0
 protected CefWriteHandler()
 {
     _self = cef_write_handler_t.Alloc();
 
     _ds0 = new cef_write_handler_t.add_ref_delegate(add_ref);
     _self->_base._add_ref = Marshal.GetFunctionPointerForDelegate(_ds0);
     _ds1 = new cef_write_handler_t.release_delegate(release);
     _self->_base._release = Marshal.GetFunctionPointerForDelegate(_ds1);
     _ds2 = new cef_write_handler_t.get_refct_delegate(get_refct);
     _self->_base._get_refct = Marshal.GetFunctionPointerForDelegate(_ds2);
     _ds3 = new cef_write_handler_t.write_delegate(write);
     _self->_write = Marshal.GetFunctionPointerForDelegate(_ds3);
     _ds4 = new cef_write_handler_t.seek_delegate(seek);
     _self->_seek = Marshal.GetFunctionPointerForDelegate(_ds4);
     _ds5 = new cef_write_handler_t.tell_delegate(tell);
     _self->_tell = Marshal.GetFunctionPointerForDelegate(_ds5);
     _ds6 = new cef_write_handler_t.flush_delegate(flush);
     _self->_flush = Marshal.GetFunctionPointerForDelegate(_ds6);
 }
Пример #2
0
        protected CefWriteHandler()
        {
            _self = cef_write_handler_t.Alloc();

            _ds0 = new cef_write_handler_t.add_ref_delegate(add_ref);
            _self->_base._add_ref = Marshal.GetFunctionPointerForDelegate(_ds0);
            _ds1 = new cef_write_handler_t.release_delegate(release);
            _self->_base._release = Marshal.GetFunctionPointerForDelegate(_ds1);
            _ds2 = new cef_write_handler_t.get_refct_delegate(get_refct);
            _self->_base._get_refct = Marshal.GetFunctionPointerForDelegate(_ds2);
            _ds3          = new cef_write_handler_t.write_delegate(write);
            _self->_write = Marshal.GetFunctionPointerForDelegate(_ds3);
            _ds4          = new cef_write_handler_t.seek_delegate(seek);
            _self->_seek  = Marshal.GetFunctionPointerForDelegate(_ds4);
            _ds5          = new cef_write_handler_t.tell_delegate(tell);
            _self->_tell  = Marshal.GetFunctionPointerForDelegate(_ds5);
            _ds6          = new cef_write_handler_t.flush_delegate(flush);
            _self->_flush = Marshal.GetFunctionPointerForDelegate(_ds6);
        }
Пример #3
0
        protected CefWriteHandler()
        {
            _self = cef_write_handler_t.Alloc();

            _ds0 = new cef_write_handler_t.add_ref_delegate(add_ref);
            _self->_base._add_ref = Marshal.GetFunctionPointerForDelegate(_ds0);
            _ds1 = new cef_write_handler_t.release_delegate(release);
            _self->_base._release = Marshal.GetFunctionPointerForDelegate(_ds1);
            _ds2 = new cef_write_handler_t.has_one_ref_delegate(has_one_ref);
            _self->_base._has_one_ref = Marshal.GetFunctionPointerForDelegate(_ds2);
            _ds3 = new cef_write_handler_t.has_at_least_one_ref_delegate(has_at_least_one_ref);
            _self->_base._has_at_least_one_ref = Marshal.GetFunctionPointerForDelegate(_ds3);
            _ds4              = new cef_write_handler_t.write_delegate(write);
            _self->_write     = Marshal.GetFunctionPointerForDelegate(_ds4);
            _ds5              = new cef_write_handler_t.seek_delegate(seek);
            _self->_seek      = Marshal.GetFunctionPointerForDelegate(_ds5);
            _ds6              = new cef_write_handler_t.tell_delegate(tell);
            _self->_tell      = Marshal.GetFunctionPointerForDelegate(_ds6);
            _ds7              = new cef_write_handler_t.flush_delegate(flush);
            _self->_flush     = Marshal.GetFunctionPointerForDelegate(_ds7);
            _ds8              = new cef_write_handler_t.may_block_delegate(may_block);
            _self->_may_block = Marshal.GetFunctionPointerForDelegate(_ds8);
        }