Beispiel #1
0
        /// <summary>
        /// Create a new CfxXmlReader object. The returned object's functions can
        /// only be called from the thread that created the object.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_xml_reader_capi.h">cef/include/capi/cef_xml_reader_capi.h</see>.
        /// </remarks>
        public static CfxXmlReader Create(CfxStreamReader stream, CfxXmlEncodingType encodingType, string uri)
        {
            var uri_pinned = new PinnedString(uri);
            var __retval   = CfxApi.cfx_xml_reader_create(CfxStreamReader.Unwrap(stream), (int)encodingType, uri_pinned.Obj.PinnedPtr, uri_pinned.Length);

            uri_pinned.Obj.Free();
            return(CfxXmlReader.Wrap(__retval));
        }
 /// <summary>
 /// Create a new CfxZipReader object. The returned object's functions can
 /// only be called from the thread that created the object.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_zip_reader_capi.h">cef/include/capi/cef_zip_reader_capi.h</see>.
 /// </remarks>
 public static CfxZipReader Create(CfxStreamReader stream)
 {
     return(CfxZipReader.Wrap(CfxApi.ZipReader.cfx_zip_reader_create(CfxStreamReader.Unwrap(stream))));
 }
Beispiel #3
0
 /// <summary>
 /// Continue the request. Read the resource contents from |stream|.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_extension_handler_capi.h">cef/include/capi/cef_extension_handler_capi.h</see>.
 /// </remarks>
 public void Continue(CfxStreamReader stream)
 {
     CfxApi.GetExtensionResourceCallback.cfx_get_extension_resource_callback_cont(NativePtr, CfxStreamReader.Unwrap(stream));
 }