コード例 #1
0
ファイル: CefXmlReader.cs プロジェクト: wuzlai/AGTkDemo
        public static cef_xml_reader_t *Create(CefStreamReader reader, CefXmlEncodingType encodingType, string uri)
        {
            if (reader == null)
                throw new ArgumentNullException(nameof(reader));

            fixed(char *s0 = uri)
            {
                var cstr0 = new cef_string_t {
                    Str = s0, Length = (uri != null ? uri.Length : 0)
                };

                return(CefNativeApi.cef_xml_reader_create(reader.GetNativeInstance(), encodingType, &cstr0));
            }
        }
コード例 #2
0
ファイル: CefZipReader.cs プロジェクト: wuzlai/AGTkDemo
 /// <summary>
 /// Create a new cef_zip_reader_t object. The created instance can
 /// only be used from the thread that created the object.
 /// </summary>
 public CefZipReader(CefStreamReader reader, CefXmlEncodingType encodingType, string uri)
     : this(CefNativeApi.cef_zip_reader_create((reader ?? throw new ArgumentNullException(nameof(reader))).GetNativeInstance()))
コード例 #3
0
ファイル: CefXmlReader.cs プロジェクト: wuzlai/AGTkDemo
 /// <summary>
 /// Create a new cef_xml_reader_t object. The created instance can
 /// only be used from the thread that created the object.
 /// </summary>
 public CefXmlReader(CefStreamReader reader, CefXmlEncodingType encodingType, string uri)
     : this(Create(reader, encodingType, uri))
 {
 }
コード例 #4
0
 /// <summary>
 /// Continue the request. Read the resource contents from |stream|.
 /// </summary>
 public unsafe virtual void Continue(CefStreamReader stream)
 {
     NativeInstance->Continue((stream != null) ? stream.GetNativeInstance() : null);
     GC.KeepAlive(this);
 }