Exemplo n.º 1
0
        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));
            }
        }
Exemplo n.º 2
0
 /// <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()))
Exemplo n.º 3
0
 /// <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))
 {
 }
 /// <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);
 }