/// <summary> /// Create a new CfxStreamWriter object for 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 CfxStreamWriter CreateForFile(string fileName) { var fileName_pinned = new PinnedString(fileName); var __retval = CfxApi.StreamWriter.cfx_stream_writer_create_for_file(fileName_pinned.Obj.PinnedPtr, fileName_pinned.Length); fileName_pinned.Obj.Free(); return(CfxStreamWriter.Wrap(__retval)); }
/// <summary> /// Create a new CfxStreamWriter object for 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 CfxStreamWriter CreateForHandler(CfxWriteHandler handler) { return(CfxStreamWriter.Wrap(CfxApi.StreamWriter.cfx_stream_writer_create_for_handler(CfxWriteHandler.Unwrap(handler)))); }