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

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat void

Chunking() public méthode

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

ZipFilesChunking() public méthode

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