/// <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 CefZipReader Create(CefStreamReader stream) { if (stream == null) throw new ArgumentNullException("stream"); return CefZipReader.FromNative( cef_zip_reader_t.create(stream.ToNative()) ); }
/// <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 CefXmlReader Create(CefStreamReader stream, CefXmlEncoding encodingType, string uri) { if (stream == null) throw new ArgumentNullException("stream"); fixed (char* uri_str = uri) { var n_uri = new cef_string_t(uri_str, uri != null ? uri.Length : 0); return CefXmlReader.FromNative( cef_xml_reader_t.create(stream.ToNative(), encodingType, &n_uri) ); } }
/// <summary> /// Continue the request. Read the resource contents from |stream|. /// </summary> public void Continue(CefStreamReader stream) { var n_stream = stream.ToNative(); cef_get_extension_resource_callback_t.cont(_self, n_stream); }