C# Class Microsoft.Protocols.TestSuites.SharedAdapter.ZipFilesChunking

This class is used to process zip file chunking.
Inheritance: AbstractChunking
Datei anzeigen Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Public Methods

Method Description
AnalyzeChunking ( RootNodeObject rootNode, ITestSite site ) : void

This method is used to analyze the chunk.

Chunking ( ) : List

This method is used to chunk the file data.

ZipFilesChunking ( byte fileContent ) : System

Initializes a new instance of the ZipFilesChunking class

Private Methods

Method Description
AnalyzeFileHeader ( byte content, int index, byte &dataFileSignature ) : byte[]

This method is used to analyze the zip file header.

GetCompressedSize ( byte dataFileSignature ) : ulong

This method is used to get the compressed size value from the data file signature.

GetDataFileSignature ( byte array ) : SignatureObject

Get the signature for data file.

GetSHA1Signature ( byte array ) : SignatureObject

Get signature with SHA1 algorithm.

GetSingleChunkSignature ( byte header, byte dataFile ) : SignatureObject

Get the signature for single chunk.

GetSubChunkList ( byte chunkData ) : List

Convert chunk data to IntermediateNodeObject from byte array.

GetSubChunkSignature ( ) : SignatureObject

Get the signature for sub chunk.

Method Details

AnalyzeChunking() public method

This method is used to analyze the chunk.
public AnalyzeChunking ( RootNodeObject rootNode, ITestSite site ) : void
rootNode RootNodeObject Specify the root node object which will be analyzed.
site ITestSite Specify the ITestSite instance.
return void

Chunking() public method

This method is used to chunk the file data.
public Chunking ( ) : List
return List

ZipFilesChunking() public method

Initializes a new instance of the ZipFilesChunking class
public ZipFilesChunking ( byte fileContent ) : System
fileContent byte The content of the file.
return System