Beispiel #1
0
        public FileRegion ShrinkAndAlign(uint alignment)
        {
            long alignedStartOffset = Alignment.AlignUpPow2(Offset, alignment);
            long alignedEndOffset   = Alignment.AlignDownPow2(GetEndOffset(), alignment);
            long alignedSize        = alignedEndOffset - alignedStartOffset;

            return(new FileRegion(alignedStartOffset, alignedSize));
        }