C# Класс Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pccrc.Content_Information_Data_Structure

Content Information is a variable size data structure. Content Information size is proportional to the length of the content it represents. Content Information starts with a single 2 byte WORD value representing the data structure version. Version 1.0 of the Content Information data structure is formatted as follows. All fields are in host byte order.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Version ushort
blocks Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pccrc.SegmentContentBlocks[]
cSegments uint
dwHashAlgo dwHashAlgo_Values
dwOffsetInFirstSegment uint
dwReadBytesInLastSegment uint
segments Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pccrc.SegmentDescription[]

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

Метод Описание
GetSegmentId ( int segmentIndex ) : byte[]
ToByteArray ( ) : byte[]

Convert the structure to byte array.

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

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

public GetSegmentId ( int segmentIndex ) : byte[]
segmentIndex int
Результат byte[]

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

Convert the structure to byte array.
public ToByteArray ( ) : byte[]
Результат byte[]

Описание свойств

Version публичное свойство

Content Information version (0x0100 is version 1.0). The low byte is the minor version number and the high byte is the major version number. MUST be 0x0100.
public ushort Version
Результат ushort

blocks публичное свойство

Count of blocks and content block hashes for each block intersecting the content range for each segment in the Content Information structure. Each set of blocks for a segment is as specified in .
public SegmentContentBlocks[],Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pccrc blocks
Результат Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pccrc.SegmentContentBlocks[]

cSegments публичное свойство

The number of segments which intersect the content range and hence are contained in the Content Information structure.
public uint cSegments
Результат uint

dwHashAlgo публичное свойство

Hash algorithm to use. MUST be one of the following values:0x0000800C,0x0000800D,0x0000800E.
public dwHashAlgo_Values dwHashAlgo
Результат dwHashAlgo_Values

dwOffsetInFirstSegment публичное свойство

Number of bytes into the first segment within the Content Information data structure at which the content range begins.
public uint dwOffsetInFirstSegment
Результат uint

dwReadBytesInLastSegment публичное свойство

Total number of bytes of the content range which lie within the final segment in the Content Information structure.
public uint dwReadBytesInLastSegment
Результат uint

segments публичное свойство

Segment start offset, length, block size, Segment Hash of Data and Segment Secret for each segment. Each segment description is as specified in .
public SegmentDescription[],Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pccrc segments
Результат Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pccrc.SegmentDescription[]