C# Class Microsoft.Protocols.TestSuites.Pchc.SegmentDescription

The segments field is composed of a number cSegments of SegmentDescription fields. Each SegmentDescription field corresponds to a content segment in the order in which they appear in the original content. Every segment except for the last segment must be exactly 32 MB in size. The content information data structure defines the content range as described below. Content range = {Start offset, Length}Start offset = ullOffsetInContent + dwOffsetInFirstSegment, where ullOffsetInContent is taken from the first SegmentDescription in the segments field.Length =( Sum of cbSegment of all segments in segments field except for the first segment and last segment) + (cbSegment of first segment – dwOffsetInFirstSegment) + dwReadBytesInLastSegmentThe content range extends to the end of all the segments whose SegmentDescriptions are included in the Content Information except for the last segment, for which the number of bytes is limited to dwReadBytesInLastSegment instead of the total number of bytes actually present in the segment.
The remarks xml document .\NewTDxml\6aabffe5-f712-41fe-8f18-c992c9ba507e.xml
Show file Open project: Microsoft/WindowsProtocolTestSuites Class Usage Examples

Public Properties

Property Type Description
CbBlockSize uint
CbSegment uint
UllOffsetInContent ulong

Property Details

CbBlockSize public property

Length of a content block within this segment, in bytes. Every segment MUST use the same block size, which MUST be 65536 bytes.
public uint CbBlockSize
return uint

CbSegment public property

Total number of bytes in the segment, regardless of how many of those bytes intersect the content range.
public uint CbSegment
return uint

UllOffsetInContent public property

Content offset at which the start of the segment begins.
public ulong UllOffsetInContent
return ulong