ICSharpCode.SharpZipLib.Zip.ZipFile.GetDescriptorSize C# (CSharp) Метод

GetDescriptorSize() приватный статический Метод

Get the size of the source descriptor for a ZipUpdate.
private static GetDescriptorSize ( ZipUpdate update ) : int
update ZipUpdate The update to get the size for.
Результат int
        private static int GetDescriptorSize(ZipUpdate update) {
            int result=0;
            if ((update.Entry.Flags&(int)GeneralBitFlags.Descriptor)!=0) {
                result=ZipConstants.DataDescriptorSize-4;
                if (update.Entry.LocalHeaderRequiresZip64) {
                    result=ZipConstants.Zip64DataDescriptorSize-4;
                }
            }
            return result;
        }