Temporary code to do the bare minimum required to read a tar archive for our purposes
More...
|
BinaryReader | m_br |
| Binary reader for the underlying stream More...
|
|
Temporary code to do the bare minimum required to read a tar archive for our purposes
Definition at line 39 of file TarArchiveReader.cs.
enum OpenSim.Framework.Serialization.TarArchiveReader.TarEntryType |
Enumerator |
---|
TYPE_UNKNOWN |
|
TYPE_NORMAL_FILE |
|
TYPE_HARD_LINK |
|
TYPE_SYMBOLIC_LINK |
|
TYPE_CHAR_SPECIAL |
|
TYPE_BLOCK_SPECIAL |
|
TYPE_DIRECTORY |
|
TYPE_FIFO |
|
TYPE_CONTIGUOUS_FILE |
|
Definition at line 43 of file TarArchiveReader.cs.
OpenSim.Framework.Serialization.TarArchiveReader.TarArchiveReader |
( |
Stream |
s | ) |
|
|
inline |
Generate a tar reader which reads from the given stream.
- Parameters
-
Definition at line 74 of file TarArchiveReader.cs.
void OpenSim.Framework.Serialization.TarArchiveReader.Close |
( |
| ) |
|
|
inline |
static int OpenSim.Framework.Serialization.TarArchiveReader.ConvertOctalBytesToDecimal |
( |
byte[] |
bytes, |
|
|
int |
startIndex, |
|
|
int |
count |
|
) |
| |
|
inlinestatic |
Convert octal bytes to a decimal representation
- Parameters
-
- Returns
Definition at line 202 of file TarArchiveReader.cs.
byte [] OpenSim.Framework.Serialization.TarArchiveReader.ReadData |
( |
int |
fileSize | ) |
|
|
inlineprotected |
byte [] OpenSim.Framework.Serialization.TarArchiveReader.ReadEntry |
( |
out string |
filePath, |
|
|
out TarEntryType |
entryType |
|
) |
| |
|
inline |
Read the next entry in the tar file.
- Parameters
-
- Returns
- the data for the entry. Returns null if there are no more entries
Definition at line 84 of file TarArchiveReader.cs.
TarHeader OpenSim.Framework.Serialization.TarArchiveReader.ReadHeader |
( |
| ) |
|
|
inlineprotected |
Read the next 512 byte chunk of data as a tar header.
- Returns
- A tar header struct. null if we have reached the end of the archive.
Definition at line 102 of file TarArchiveReader.cs.
BinaryReader OpenSim.Framework.Serialization.TarArchiveReader.m_br |
|
protected |
char [] OpenSim.Framework.Serialization.TarArchiveReader.m_nullCharArray = new char[] { '\0' } |
|
staticprotected |
char [] OpenSim.Framework.Serialization.TarArchiveReader.m_spaceCharArray = new char[] { ' ' } |
|
staticprotected |
The documentation for this class was generated from the following file: