English 中文(简体)
...... IC ode
原标题:what is ICSharpCode.SharpZipLib.ZipEntry.Flag?

我会举一个例子,但找不到任何适当的结果。

我想悬挂旗帜,以便在档案名称时用原名压缩档案。

具有特殊性质。 例如,目前我正在使用。

ZipEntry entry = new ZipEntry(file.FullName.Substring(directory.FullName.Length + 1));
                    entry.Flags |= 2048; // enable UTF8 file names

支持特别骚扰者档案名称的旗帜是什么?

Thanx

问题回答

本构成部分的源代码如下:

如果你下载来文方并审查《国际船舶和公司法》,请查阅<编码>的以下评论。 旗帜/编码。

///
/// Get/Set general purpose bit flag for entry
///
///
/// General purpose bit flag
///
/// Bit 0: If set, indicates the file is encrypted
/// Bit 1-2 Only used for compression type 6 Imploding, and 8, 9 deflating
/// Imploding:
/// Bit 1 if set indicates an 8K sliding dictionary was used.  If clear a 4k dictionary was used
/// Bit 2 if set indicates 3 Shannon-Fanno trees were used to encode the sliding dictionary, 2 otherwise
///
/// Deflating:
///   Bit 2    Bit 1
///     0        0       Normal compression was used
///     0        1       Maximum compression was used
///     1        0       Fast compression was used
///     1        1       Super fast compression was used
///
/// Bit 3: If set, the fields crc-32, compressed size
/// and uncompressed size are were not able to be written during zip file creation
/// The correct values are held in a data descriptor immediately following the compressed data.
/// Bit 4: Reserved for use by PKZIP for enhanced deflating
/// Bit 5: If set indicates the file contains compressed patch data
/// Bit 6: If set indicates strong encryption was used.
/// Bit 7-10: Unused or reserved
/// Bit 11: If set the name and comments for this entry are in <a href="http://www.unicode.org">unicode</a>.
/// Bit 12-15: Unused or reserved
///
/// <seealso cref="IsUnicodeText"></seealso>
/// <seealso cref="IsCrypted"></seealso>

因此,如你所做的那样,将2048年投到旗帜中是正确的。 或者,你可以确定“IsUnicodeText”财产,虽然使该法典看上去一点更清洁:

entry.IsUnicodeText = true;




相关问题
Lisp syntax highlighting for ICSharpCode.TextEditor

Is there a Common Lisp syntax highlighting .xshd file for use with ICSharpCode.TextEditor? I haven t been able to find one on google, and the format for writing syntax highlighting specification files ...

What ever happened to #WT?

What ever happed to #WT (SharpWT) by ICSharpCode, a port of SWT from JVM to .NET? I can t find it anywhere. Thanks. I ve tried looking forward it on the net, but cant find it. It would be especially ...

...... IC ode

我会举一个例子,但找不到任何适当的结果。

Using AvalonEdit in Sharpdevelop 3.x

I am very curious to know if it is possible to replace the normal ICSharpCode.TextEditor with AvalonEdit in Sharpdevelop 3.x. Frankly speaking AvalonEdit is way too better than ICSharpCode.TextEditor, ...

Configuring Intellisense in ICSharpCode.TextEditor

I can t understand how to let Intellisense work in ICSharpCode.TextEditor. As of today, replies are incomplete. On the web, there are no samples... I need to display a completion box with my custom ...

ICSharp text editor for Mono

I know there is a text-editing control which was built for MonoDevelop, but where exactly is it? In the AddIns and bin folder of MonoDevelop in Program Files after installation, there a bunch of DLL ...

热门标签