C# Class SimExport.TarArchiveWriter

Produces a tar archive in tar v7 format
Afficher le fichier Open project: 3di/3di-viewer-rei-libs Class Usage Examples

Protected Properties

Свойство Type Description
m_asciiEncoding System.Text.ASCIIEncoding
m_files byte[]>.Dictionary

Méthodes publiques

Méthode Description
AddDir ( string dirName ) : void

Add a directory to the tar archive. We can only handle one path level right now!

AddFile ( string filePath, byte data ) : void

Add a file to the tar archive

AddFile ( string filePath, string data ) : void

Add a file to the tar archive

ConvertDecimalToPaddedOctalBytes ( int d, int padding ) : byte[]
WriteTar ( Stream s ) : void

Write the raw tar archive data to a stream. The stream will be closed on completion.

Method Details

AddDir() public méthode

Add a directory to the tar archive. We can only handle one path level right now!
public AddDir ( string dirName ) : void
dirName string
Résultat void

AddFile() public méthode

Add a file to the tar archive
public AddFile ( string filePath, byte data ) : void
filePath string
data byte
Résultat void

AddFile() public méthode

Add a file to the tar archive
public AddFile ( string filePath, string data ) : void
filePath string
data string
Résultat void

ConvertDecimalToPaddedOctalBytes() public static méthode

public static ConvertDecimalToPaddedOctalBytes ( int d, int padding ) : byte[]
d int
padding int
Résultat byte[]

WriteTar() public méthode

Write the raw tar archive data to a stream. The stream will be closed on completion.
public WriteTar ( Stream s ) : void
s Stream Stream to which to write the data
Résultat void

Property Details

m_asciiEncoding protected_oe static_oe property

protected static ASCIIEncoding,System.Text m_asciiEncoding
Résultat System.Text.ASCIIEncoding

m_files protected_oe property

protected Dictionary m_files
Résultat byte[]>.Dictionary