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.
파일 보기 프로젝트 열기: Microsoft/WindowsProtocolTestSuites 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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[]