Exemplo n.º 1
0
 public static int 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; }
     }
     return d(self);
 }
Exemplo n.º 2
0
 public static extern cef_zip_reader_t* create(cef_stream_reader_t* stream);
Exemplo n.º 3
0
 private CefStreamReader(cef_stream_reader_t* ptr)
 {
     if (ptr == null) throw new ArgumentNullException("ptr");
     _self = ptr;
 }
Exemplo n.º 4
0
 internal static CefStreamReader FromNativeOrNull(cef_stream_reader_t* ptr)
 {
     if (ptr == null) return null;
     return new CefStreamReader(ptr);
 }
Exemplo n.º 5
0
 internal static CefStreamReader FromNative(cef_stream_reader_t* ptr)
 {
     return new CefStreamReader(ptr);
 }
Exemplo n.º 6
0
 public static extern cef_xml_reader_t* create(cef_stream_reader_t* stream, CefXmlEncoding encodingType, cef_string_t* URI);
Exemplo n.º 7
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.º 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 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.º 10
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);
 }
Exemplo n.º 11
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.º 12
0
 public static int get_refct(cef_stream_reader_t* self)
 {
     get_refct_delegate d;
     var p = self->_base._get_refct;
     if (p == _p2) { d = _d2; }
     else
     {
         d = (get_refct_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_refct_delegate));
         if (_p2 == IntPtr.Zero) { _d2 = d; _p2 = p; }
     }
     return d(self);
 }
Exemplo n.º 13
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);
 }