Ejemplo n.º 1
0
        /// <summary>
        /// Create a new CfxStreamReader object from a file.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_stream_capi.h">cef/include/capi/cef_stream_capi.h</see>.
        /// </remarks>
        public static CfxStreamReader CreateForFile(string fileName)
        {
            var fileName_pinned = new PinnedString(fileName);
            var __retval        = CfxApi.StreamReader.cfx_stream_reader_create_for_file(fileName_pinned.Obj.PinnedPtr, fileName_pinned.Length);

            fileName_pinned.Obj.Free();
            return(CfxStreamReader.Wrap(__retval));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new CfxStreamReader object from a custom handler.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_stream_capi.h">cef/include/capi/cef_stream_capi.h</see>.
 /// </remarks>
 public static CfxStreamReader CreateForHandler(CfxReadHandler handler)
 {
     return(CfxStreamReader.Wrap(CfxApi.StreamReader.cfx_stream_reader_create_for_handler(CfxReadHandler.Unwrap(handler))));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Create a new CfxStreamReader object from data.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_stream_capi.h">cef/include/capi/cef_stream_capi.h</see>.
 /// </remarks>
 public static CfxStreamReader CreateForData(IntPtr data, ulong size)
 {
     return(CfxStreamReader.Wrap(CfxApi.StreamReader.cfx_stream_reader_create_for_data(data, (UIntPtr)size)));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Create a new CfxStreamReader object from data.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_stream_capi.h">cef/include/capi/cef_stream_capi.h</see>.
 /// </remarks>
 public static CfxStreamReader CreateForData(IntPtr data, int size)
 {
     return(CfxStreamReader.Wrap(CfxApi.cfx_stream_reader_create_for_data(data, size)));
 }