/// <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)
                    );
            }
        }
示例#2
0
        /// <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)
                    );
            }
        }
示例#3
0
 /// <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 cef_xml_reader_t *Create(cef_stream_reader_t *stream, CefXmlEncoding encodingType, cef_string_t *URI)
 {
     throw new NotImplementedException(); // TODO: CefXmlReader.Create
 }
示例#4
0
 public static extern cef_xml_reader_t *create(cef_stream_reader_t *stream, CefXmlEncoding encodingType, cef_string_t *URI);
 public static extern cef_xml_reader_t* create(cef_stream_reader_t* stream, CefXmlEncoding encodingType, cef_string_t* URI);