C# Class Universe.Framework.Serialization.TarArchiveReader

Temporary code to do the bare minimum required to read a tar archive for our purposes
Afficher le fichier Open project: Virtual-Universe/Virtual-Universe Class Usage Examples

Protected Properties

Свойство Type Description
m_asciiEncoding System.Text.ASCIIEncoding
m_br System.IO.BinaryReader
m_nullCharArray char[]
m_spaceCharArray char[]

Méthodes publiques

Méthode Description
Close ( ) : void
ConvertOctalBytesToDecimal ( byte bytes, int startIndex, int count ) : int

Convert octal bytes to a decimal representation

ReadEntry ( string &filePath, TarEntryType &entryType ) : byte[]

Read the next entry in the tar file.

TarArchiveReader ( Stream s ) : System.IO

Generate a tar reader which reads from the given stream.

Méthodes protégées

Méthode Description
ReadData ( int fileSize ) : byte[]

Read data following a header

ReadHeader ( ) : TarHeader

Read the next 512 byte chunk of data as a tar header.

Method Details

Close() public méthode

public Close ( ) : void
Résultat void

ConvertOctalBytesToDecimal() public static méthode

Convert octal bytes to a decimal representation
public static ConvertOctalBytesToDecimal ( byte bytes, int startIndex, int count ) : int
bytes byte
startIndex int
count int
Résultat int

ReadData() protected méthode

Read data following a header
protected ReadData ( int fileSize ) : byte[]
fileSize int
Résultat byte[]

ReadEntry() public méthode

Read the next entry in the tar file.
public ReadEntry ( string &filePath, TarEntryType &entryType ) : byte[]
filePath string
entryType TarEntryType
Résultat byte[]

ReadHeader() protected méthode

Read the next 512 byte chunk of data as a tar header.
protected ReadHeader ( ) : TarHeader
Résultat TarHeader

TarArchiveReader() public méthode

Generate a tar reader which reads from the given stream.
public TarArchiveReader ( Stream s ) : System.IO
s Stream
Résultat System.IO

Property Details

m_asciiEncoding protected_oe static_oe property

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

m_br protected_oe property

Binary reader for the underlying stream
protected BinaryReader,System.IO m_br
Résultat System.IO.BinaryReader

m_nullCharArray protected_oe static_oe property

Used to trim off null chars
protected static char[] m_nullCharArray
Résultat char[]

m_spaceCharArray protected_oe static_oe property

Used to trim off space chars
protected static char[] m_spaceCharArray
Résultat char[]