C# 클래스 Universe.Framework.Serialization.TarArchiveReader

Temporary code to do the bare minimum required to read a tar archive for our purposes
파일 보기 프로젝트 열기: Virtual-Universe/Virtual-Universe 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_asciiEncoding System.Text.ASCIIEncoding
m_br System.IO.BinaryReader
m_nullCharArray char[]
m_spaceCharArray char[]

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
ReadData ( int fileSize ) : byte[]

Read data following a header

ReadHeader ( ) : TarHeader

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

메소드 상세

Close() 공개 메소드

public Close ( ) : void
리턴 void

ConvertOctalBytesToDecimal() 공개 정적인 메소드

Convert octal bytes to a decimal representation
public static ConvertOctalBytesToDecimal ( byte bytes, int startIndex, int count ) : int
bytes byte
startIndex int
count int
리턴 int

ReadData() 보호된 메소드

Read data following a header
protected ReadData ( int fileSize ) : byte[]
fileSize int
리턴 byte[]

ReadEntry() 공개 메소드

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

ReadHeader() 보호된 메소드

Read the next 512 byte chunk of data as a tar header.
protected ReadHeader ( ) : TarHeader
리턴 TarHeader

TarArchiveReader() 공개 메소드

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

프로퍼티 상세

m_asciiEncoding 보호되어 있는 정적으로 프로퍼티

protected static ASCIIEncoding,System.Text m_asciiEncoding
리턴 System.Text.ASCIIEncoding

m_br 보호되어 있는 프로퍼티

Binary reader for the underlying stream
protected BinaryReader,System.IO m_br
리턴 System.IO.BinaryReader

m_nullCharArray 보호되어 있는 정적으로 프로퍼티

Used to trim off null chars
protected static char[] m_nullCharArray
리턴 char[]

m_spaceCharArray 보호되어 있는 정적으로 프로퍼티

Used to trim off space chars
protected static char[] m_spaceCharArray
리턴 char[]