Example #1
0
        public IdxPage()
        {
            Magic = new Magic(new byte[] { 201, 0, 0, 0,
                                           0, 0, 0, 0,
                                           0, 0, 0, 0,
                                           0, 0, 0, 0,
                                           0, 0, 0, 0, });

            Unknown0        = new Chararray();
            Unknown0.Length = (4 * 10);

            AllocationBitmap        = new Chararray();
            AllocationBitmap.Length = 125;
            ListItems = new ChunkList <IdxListItem>(ChunkListRepeat.ToCount, 1000);

            SetupChunkFields();
            AutomaticFields = new List <ChunkField>()
            {
                Magic,
                Next,
                Unknown1,
                BytesPerSlot,
                Fragments,
                EmptySlots,
                Unknown0,
                AllocationBitmap,
            };
        }
Example #2
0
        public override void AfterAutomaticRead(IReader rdr)
        {
            var data = new Chararray();

            data.Length = this.Length.Value;
            data.Read(rdr);

            base.AfterAutomaticRead(rdr);
        }
Example #3
0
        public DatPageHeader()
        {
            Magic = new Magic(new byte[] { 201, 0, 0, 0,
                                           0, 0, 0, 0,
                                           0, 0, 0, 0,
                                           0, 0, 0, 0,
//                                             0, 0, 0, 0,
                                           0, 0, 0, 0, });
            Next         = new Data32LE();
            Unknown0     = new Data32LE();
            BytesPerSlot = new Data32LE();
            Fragments    = new Data32LE();
            EmptySlots   = new Data32LE();

            Unknown10Zeroes        = new Chararray();
            Unknown10Zeroes.Length = (4 * 10);

            AllocationBitmapBytes        = new ByteArray();
            AllocationBitmapBytes.Length = 125;

            Slot        = new ByteArray();
            Slot.Length = 64;

            //SetupChunkFields();
            AutomaticFields = new List <ChunkField>()
            {
                Magic,
                Next,
                Unknown0,
                BytesPerSlot,
                Fragments,
                EmptySlots,
                Unknown10Zeroes,
                AllocationBitmapBytes,
            };
        }