/// <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)); }
/// <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)))); }
/// <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))); }
/// <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))); }