C# Class Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pccrc.SegmentContentBlocks

The blocks field contains a number cSegments of SegmentContentBlocks fields. The Nth SegmentContentBlocks field corresponds to the Nth SegmentDescription and hence the Nth content segment. The SegmentContentBlocks field is formatted as follows.
Mostra file Open project: Microsoft/WindowsProtocolTestSuites Class Usage Examples

Public Properties

Property Type Description
BlockHashes byte[]
cBlocks uint

Public Methods

Method Description
ToByteArray ( dwHashAlgo_Values algo ) : byte[]

Convert the structure to byte array.

Method Details

ToByteArray() public method

Convert the structure to byte array.
public ToByteArray ( dwHashAlgo_Values algo ) : byte[]
algo dwHashAlgo_Values The hash algorithm to use.
return byte[]

Property Details

BlockHashes public_oe property

SHA-256, SHA-384 or SHA-512 hash of each content block in the order in which the blocks appear in the segment. The size of this field is cBlocks * (32, 48 or 64, depending on which hash was used).
public byte[] BlockHashes
return byte[]

cBlocks public_oe property

Number of content blocks in the segment which intersect the content range specified at the start of the content information.
public uint cBlocks
return uint