/// <summary> /// Load the contents of |stream| with the optional dummy target |url|. /// </summary> public void LoadStream(CefStreamReader stream, string url) { fixed(char *url_str = url) { var n_url = new cef_string_t(url_str, url != null ? url.Length : 0); cef_frame_t.invoke_load_stream(this.ptr, stream.GetNativePointerAndAddRef(), &n_url); } }
/// <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, CefXmlEncodingType encodingType, string uri) { fixed(char *uri_str = uri) { var n_uri = new cef_string_t(uri_str, uri != null ? uri.Length : 0); return(CefXmlReader.From( NativeMethods.cef_xml_reader_create( stream.GetNativePointerAndAddRef(), (cef_xml_encoding_type_t)encodingType, &n_uri) )); } }
/// <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) { return(CefZipReader.From( NativeMethods.cef_zip_reader_create(stream.GetNativePointerAndAddRef()) )); }