C# Class 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.
Datei anzeigen Open project: Microsoft/WindowsProtocolTestSuites Class Usage Examples

Public Properties

Property Type Description
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[]

Public Methods

Method Description
GetSegmentId ( int segmentIndex ) : byte[]
ToByteArray ( ) : byte[]

Convert the structure to byte array.

Method Details

GetSegmentId() public method

public GetSegmentId ( int segmentIndex ) : byte[]
segmentIndex int
return byte[]

ToByteArray() public method

Convert the structure to byte array.
public ToByteArray ( ) : byte[]
return byte[]

Property Details

Version public_oe property

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
return ushort

blocks public_oe property

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
return Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pccrc.SegmentContentBlocks[]

cSegments public_oe property

The number of segments which intersect the content range and hence are contained in the Content Information structure.
public uint cSegments
return uint

dwHashAlgo public_oe property

Hash algorithm to use. MUST be one of the following values:0x0000800C,0x0000800D,0x0000800E.
public dwHashAlgo_Values dwHashAlgo
return dwHashAlgo_Values

dwOffsetInFirstSegment public_oe property

Number of bytes into the first segment within the Content Information data structure at which the content range begins.
public uint dwOffsetInFirstSegment
return uint

dwReadBytesInLastSegment public_oe property

Total number of bytes of the content range which lie within the final segment in the Content Information structure.
public uint dwReadBytesInLastSegment
return uint

segments public_oe property

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
return Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pccrc.SegmentDescription[]