public static int add_ref(cef_stream_writer_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); }
public static UIntPtr get_file_contents(cef_drag_data_t* self, cef_stream_writer_t* writer) { get_file_contents_delegate d; var p = self->_get_file_contents; if (p == _pf) { d = _df; } else { d = (get_file_contents_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_file_contents_delegate)); if (_pf == IntPtr.Zero) { _df = d; _pf = p; } } return d(self, writer); }
internal static CefStreamWriter FromNativeOrNull(cef_stream_writer_t* ptr) { if (ptr == null) return null; return new CefStreamWriter(ptr); }
internal static CefStreamWriter FromNative(cef_stream_writer_t* ptr) { return new CefStreamWriter(ptr); }
private CefStreamWriter(cef_stream_writer_t* ptr) { if (ptr == null) throw new ArgumentNullException("ptr"); _self = ptr; }
public static int release(cef_stream_writer_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); }
public static int flush(cef_stream_writer_t* self) { flush_delegate d; var p = self->_flush; if (p == _p6) { d = _d6; } else { d = (flush_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(flush_delegate)); if (_p6 == IntPtr.Zero) { _d6 = d; _p6 = p; } } return d(self); }
public static long tell(cef_stream_writer_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); }
public static int seek(cef_stream_writer_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 UIntPtr write(cef_stream_writer_t* self, void* ptr, UIntPtr size, UIntPtr n) { write_delegate d; var p = self->_write; if (p == _p3) { d = _d3; } else { d = (write_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(write_delegate)); if (_p3 == IntPtr.Zero) { _d3 = d; _p3 = p; } } return d(self, ptr, size, n); }
public static int get_refct(cef_stream_writer_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); }
public static int may_block(cef_stream_writer_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); }