Exemplo n.º 1
0
 public unsafe void Continue(cef_stream_reader_t *stream)
 {
     fixed(cef_get_extension_resource_callback_t *self = &this)
     {
         ((delegate * unmanaged[Stdcall] < cef_get_extension_resource_callback_t *, cef_stream_reader_t *, void >)cont)(self, stream);
     }
 }
Exemplo n.º 2
0
 private CefStreamReader(cef_stream_reader_t *ptr)
 {
     if (ptr == null)
     {
         throw new ArgumentNullException("ptr");
     }
     _self = ptr;
 }
Exemplo n.º 3
0
 internal static CefStreamReader FromNativeOrNull(cef_stream_reader_t *ptr)
 {
     if (ptr == null)
     {
         return(null);
     }
     return(new CefStreamReader(ptr));
 }
Exemplo n.º 4
0
 public void Dispose()
 {
     if (_self != null)
     {
         Release();
         _self = null;
     }
     GC.SuppressFinalize(this);
 }
Exemplo n.º 5
0
 public void Dispose()
 {
     if (_self != null)
     {
         Release();
         _self = null;
     }
     GC.SuppressFinalize(this);
 }
Exemplo n.º 6
0
        public static int eof(cef_stream_reader_t *self)
        {
            eof_delegate d;
            var          p = self->_eof;

            if (p == _p6)
            {
                d = _d6;
            }
            else
            {
                d = (eof_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(eof_delegate));
                if (_p6 == IntPtr.Zero)
                {
                    _d6 = d; _p6 = p;
                }
            }
            return(d(self));
        }
Exemplo n.º 7
0
        public static long tell(cef_stream_reader_t *self)
        {
            tell_delegate d;
            var           p = self->_tell;

            if (p == _p5)
            {
                d = _d5;
            }
            else
            {
                d = (tell_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(tell_delegate));
                if (_p5 == IntPtr.Zero)
                {
                    _d5 = d; _p5 = p;
                }
            }
            return(d(self));
        }
Exemplo n.º 8
0
        public static int may_block(cef_stream_reader_t *self)
        {
            may_block_delegate d;
            var p = self->_may_block;

            if (p == _p7)
            {
                d = _d7;
            }
            else
            {
                d = (may_block_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(may_block_delegate));
                if (_p7 == IntPtr.Zero)
                {
                    _d7 = d; _p7 = p;
                }
            }
            return(d(self));
        }
Exemplo n.º 9
0
        public static int seek(cef_stream_reader_t *self, long offset, int whence)
        {
            seek_delegate d;
            var           p = self->_seek;

            if (p == _p4)
            {
                d = _d4;
            }
            else
            {
                d = (seek_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(seek_delegate));
                if (_p4 == IntPtr.Zero)
                {
                    _d4 = d; _p4 = p;
                }
            }
            return(d(self, offset, whence));
        }
        public static void cont(cef_get_extension_resource_callback_t *self, cef_stream_reader_t *stream)
        {
            cont_delegate d;
            var           p = self->_cont;

            if (p == _p4)
            {
                d = _d4;
            }
            else
            {
                d = (cont_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(cont_delegate));
                if (_p4 == IntPtr.Zero)
                {
                    _d4 = d; _p4 = p;
                }
            }
            d(self, stream);
        }
Exemplo n.º 11
0
        public static void add_ref(cef_stream_reader_t *self)
        {
            add_ref_delegate d;
            var p = self->_base._add_ref;

            if (p == _p0)
            {
                d = _d0;
            }
            else
            {
                d = (add_ref_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(add_ref_delegate));
                if (_p0 == IntPtr.Zero)
                {
                    _d0 = d; _p0 = p;
                }
            }
            d(self);
        }
Exemplo n.º 12
0
        public static UIntPtr read(cef_stream_reader_t *self, void *ptr, UIntPtr size, UIntPtr n)
        {
            read_delegate d;
            var           p = self->_read;

            if (p == _p3)
            {
                d = _d3;
            }
            else
            {
                d = (read_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(read_delegate));
                if (_p3 == IntPtr.Zero)
                {
                    _d3 = d; _p3 = p;
                }
            }
            return(d(self, ptr, size, n));
        }
Exemplo n.º 13
0
        public static int has_one_ref(cef_stream_reader_t *self)
        {
            has_one_ref_delegate d;
            var p = self->_base._has_one_ref;

            if (p == _p2)
            {
                d = _d2;
            }
            else
            {
                d = (has_one_ref_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_one_ref_delegate));
                if (_p2 == IntPtr.Zero)
                {
                    _d2 = d; _p2 = p;
                }
            }
            return(d(self));
        }
Exemplo n.º 14
0
        public static int release(cef_stream_reader_t *self)
        {
            release_delegate d;
            var p = self->_base._release;

            if (p == _p1)
            {
                d = _d1;
            }
            else
            {
                d = (release_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(release_delegate));
                if (_p1 == IntPtr.Zero)
                {
                    _d1 = d; _p1 = p;
                }
            }
            return(d(self));
        }
Exemplo n.º 15
0
 private CefStreamReader(cef_stream_reader_t* ptr)
 {
     if (ptr == null) throw new ArgumentNullException("ptr");
     _self = ptr;
 }
Exemplo n.º 16
0
 internal static CefStreamReader FromNative(cef_stream_reader_t *ptr)
 {
     return(new CefStreamReader(ptr));
 }
Exemplo n.º 17
0
 /// <summary>
 /// Create a new CefXmlReader object. The returned object's methods can only
 /// be called from the thread that created the object.
 /// </summary>
 public static cef_xml_reader_t *Create(cef_stream_reader_t *stream, CefXmlEncoding encodingType, cef_string_t *URI)
 {
     throw new NotImplementedException(); // TODO: CefXmlReader.Create
 }
Exemplo n.º 18
0
 public CefStreamReader(cef_stream_reader_t *instance)
     : base((cef_base_ref_counted_t *)instance)
 {
 }
Exemplo n.º 19
0
 public static extern cef_xml_reader_t *create(cef_stream_reader_t *stream, CefXmlEncoding encodingType, cef_string_t *URI);
 public static extern cef_zip_reader_t *create(cef_stream_reader_t *stream);
Exemplo n.º 21
0
 /// <summary>
 /// Create a new CefZipReader object. The returned object's methods can only
 /// be called from the thread that created the object.
 /// </summary>
 public static cef_zip_reader_t *Create(cef_stream_reader_t *stream)
 {
     throw new NotImplementedException(); // TODO: CefZipReader.Create
 }
Exemplo n.º 22
0
 public unsafe extern void Continue(cef_stream_reader_t *stream);