C# Class BSPGenerationTools.TarPacker

显示文件 Open project: sysprogs/BSPTools Class Usage Examples

Public Methods

Method Description
CreateHeader ( string fileName, bool isDir, long size, System.DateTime lastWriteTime, int &paddingSize, bool isLongLinkPseudoentry = false ) : byte[]
PackDirectoryToTGZ ( string dir, string archive, FileNameFilter filter ) : void

Private Methods

Method Description
ArchiveDirectoryToTARRecursively ( Stream tarStream, string absoluteDirectory, string relativeDirectoryInUnixFormat, int &filesDone, long &bytesDone, byte paddingBuffer, byte tempBuffer, FileNameFilter filter ) : void
CopyStreamWithProgress ( Stream source, Stream dest, int &filesDone, long &bytesDone, byte tempBuffer, long len = -1 ) : void
FindClose ( IntPtr hFindFile ) : bool
FindFirstFile ( string lpFileName, WIN32_FIND_DATA &lpFindFileData ) : IntPtr
FindNextFile ( IntPtr hFindFile, WIN32_FIND_DATA &lpFindFileData ) : bool
MAKELONGLONG ( int high, int low ) : long
WriteOctalField ( byte hdr, int offset, int maxLen, long val ) : void
WriteTextField ( byte hdr, int offset, int maxLen, string val ) : void

Method Details

CreateHeader() public static method

public static CreateHeader ( string fileName, bool isDir, long size, System.DateTime lastWriteTime, int &paddingSize, bool isLongLinkPseudoentry = false ) : byte[]
fileName string
isDir bool
size long
lastWriteTime System.DateTime
paddingSize int
isLongLinkPseudoentry bool
return byte[]

PackDirectoryToTGZ() public static method

public static PackDirectoryToTGZ ( string dir, string archive, FileNameFilter filter ) : void
dir string
archive string
filter FileNameFilter
return void