C# Класс Microsoft.Protocols.TestSuites.SharedAdapter.ZipFilesChunking

This class is used to process zip file chunking.
Наследование: AbstractChunking
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

AnalyzeChunking() публичный Метод

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.
Результат void

Chunking() публичный Метод

This method is used to chunk the file data.
public Chunking ( ) : List
Результат List

ZipFilesChunking() публичный Метод

Initializes a new instance of the ZipFilesChunking class
public ZipFilesChunking ( byte fileContent ) : System
fileContent byte The content of the file.
Результат System