C# Class Microsoft.OfficeProPlus.Downloader.CabExtractor

Inheritance: IDisposable
Datei anzeigen Open project: OfficeDev/Office-IT-Pro-Deployment-Scripts Class Usage Examples

Private Properties

Property Type Description
AddToListOfFiles void
CopyFiles System.IntPtr
CreateAllRelevantDirectories void
Dispose void
ExtractCallback System.IntPtr
ExtractFile void
FdiCopy bool
FdiCreate System.IntPtr
FdiIterate bool
FileRead int
FileSeek int
FileWrite int
GetFileName string
GetFileRootFolder string
InputFileClose int
InputFileOpen System.IntPtr
IterateCallback System.IntPtr
MemAlloc System.IntPtr
MemFree void
OutputFileClose System.IntPtr
OutputFileOpen System.IntPtr
ShouldIgnoreFile bool
StreamFromHandle Stream

Public Methods

Method Description
CabExtractor ( string cabFilePath ) : System
CabExtractor ( string cabFilePath, IEnumerable subDirectoryToUnpack ) : System
CopyStream ( Stream input, Stream output ) : void

Copies the contents of input to output. Doesn't close either stream.

Dispose ( ) : void
ExtractCabFiles ( ) : bool

Private Methods

Method Description
AddToListOfFiles ( ArchiveFile extractFile ) : void
CopyFiles ( NativeMethods fdin ) : IntPtr
CreateAllRelevantDirectories ( string filePath ) : void
Dispose ( bool disposing ) : void
ExtractCallback ( NativeMethods fdint, NativeMethods fdin ) : IntPtr
ExtractFile ( string fileName ) : void
FdiCopy ( ) : bool
FdiCreate ( NativeMethods fnMemAlloc, NativeMethods fnMemFree, NativeMethods fnFileOpen, NativeMethods fnFileRead, NativeMethods fnFileWrite, NativeMethods fnFileClose, NativeMethods fnFileSeek, NativeMethods erf ) : IntPtr
FdiIterate ( ) : bool
FileRead ( IntPtr hf, byte buffer, int cb ) : int
FileSeek ( IntPtr hf, int dist, int seektype ) : int
FileWrite ( IntPtr hf, byte buffer, int cb ) : int
GetFileName ( NativeMethods notification ) : string
GetFileRootFolder ( string path ) : string
InputFileClose ( IntPtr hf ) : int
InputFileOpen ( string fileName, int oflag, int pmode ) : IntPtr
IterateCallback ( NativeMethods fdint, NativeMethods fdin ) : IntPtr
MemAlloc ( int cb ) : IntPtr
MemFree ( IntPtr mem ) : void
OutputFileClose ( NativeMethods fdin ) : IntPtr
OutputFileOpen ( NativeMethods fdin ) : IntPtr
ShouldIgnoreFile ( ArchiveFile extractFile ) : bool
StreamFromHandle ( IntPtr hf ) : Stream

Method Details

CabExtractor() public method

public CabExtractor ( string cabFilePath ) : System
cabFilePath string
return System

CabExtractor() public method

public CabExtractor ( string cabFilePath, IEnumerable subDirectoryToUnpack ) : System
cabFilePath string
subDirectoryToUnpack IEnumerable
return System

CopyStream() public static method

Copies the contents of input to output. Doesn't close either stream.
public static CopyStream ( Stream input, Stream output ) : void
input Stream
output Stream
return void

Dispose() public method

public Dispose ( ) : void
return void

ExtractCabFiles() public method

public ExtractCabFiles ( ) : bool
return bool