コード例 #1
0
ファイル: PtsHelper.cs プロジェクト: JianwenSun/cc
        internal static unsafe void TrackListFromSection(
            PtsContext ptsContext,
            IntPtr section,
            ref PTS.FSSECTIONDETAILS sectionDetails,
            out PTS.FSTRACKDESCRIPTION [] arrayTrackDesc)
        {
            // 

            Debug.Assert(sectionDetails.u.withpagenotes.cSegmentDefinedColumnSpanAreas == 0);
            Debug.Assert(sectionDetails.u.withpagenotes.cHeightDefinedColumnSpanAreas == 0);

            arrayTrackDesc = new PTS.FSTRACKDESCRIPTION[sectionDetails.u.withpagenotes.cBasicColumns];

            int trackCount;
            fixed (PTS.FSTRACKDESCRIPTION* rgTrackDesc = arrayTrackDesc)
            {
                PTS.Validate(PTS.FsQuerySectionBasicColumnList(ptsContext.Context, section, sectionDetails.u.withpagenotes.cBasicColumns,
                    rgTrackDesc, out trackCount));
            }
            ErrorHandler.Assert(sectionDetails.u.withpagenotes.cBasicColumns == trackCount, ErrorHandler.PTSObjectsCountMismatch);
        }
コード例 #2
0
ファイル: PtsHelper.cs プロジェクト: JianwenSun/cc
 internal static unsafe void TrackListFromSubpage(
     PtsContext ptsContext,
     IntPtr subpage,
     ref PTS.FSSUBPAGEDETAILS subpageDetails,
     out PTS.FSTRACKDESCRIPTION [] arrayTrackDesc)
 {
     arrayTrackDesc = new PTS.FSTRACKDESCRIPTION [subpageDetails.u.complex.cBasicColumns];
     int trackCount;
     fixed (PTS.FSTRACKDESCRIPTION* rgTrackDesc = arrayTrackDesc)
     {
         PTS.Validate(PTS.FsQuerySubpageBasicColumnList(ptsContext.Context, subpage, subpageDetails.u.complex.cBasicColumns,
             rgTrackDesc, out trackCount));
     }
     ErrorHandler.Assert(subpageDetails.u.complex.cBasicColumns == trackCount, ErrorHandler.PTSObjectsCountMismatch);
 }