Beispiel #1
0
        public static BATBlockAndIndex GetSBATBlockAndIndex(int offset, HeaderBlock header, List <BATBlock> sbats)
        {
            POIFSBigBlockSize bigBlockSize = header.BigBlockSize;

            int whichSBAT = (int)Math.Floor(1.0 * offset / bigBlockSize.GetBATEntriesPerBlock());
            int index     = offset % bigBlockSize.GetBATEntriesPerBlock();

            return(new BATBlockAndIndex(index, sbats[whichSBAT]));
        }
 public HeaderBlockWriter(HeaderBlock headerBlock)
 {
     _header_block = headerBlock;
 }
Beispiel #3
0
 public static int CalculateMaximumSize(HeaderBlock header)
 {
     return(CalculateMaximumSize(header.BigBlockSize, header.BATCount));
 }
 public HeaderBlockWriter(POIFSBigBlockSize bigBlockSize)
 {
     _header_block = new HeaderBlock(bigBlockSize);
 }