コード例 #1
0
        public FATBootSector(byte[] data)
        {
            jumpInstruction = (uint)(data[2] << 16 | data[1] << 8 | data[0]);

            OEM_ID = (uint)(data[3] << 56 | data[4] << 48 | data[5] << 40 | data[6] << 32 | data[7] << 24 | data[8] << 16 | data[9] << 8 | data[10]);

            bPB = new BootParameterBlock(data);

            exBPB = new ExBootParameterBlock(data);

            bootstrapCode = new byte[448];
            Array.Copy(data, 0x3E, bootstrapCode, 0, bootstrapCode.Length);

            endMarker = (ushort)(data[0x1FE] << 8 | data[0x1FF]);
        }
コード例 #2
0
        public FATBootSector(byte[] data)
        {
            jumpInstruction = (uint)(data[2] << 16 | data[1] << 8 | data[0]);

            OEM_ID = (uint)(data[3] << 56 | data[4] << 48 | data[5] << 40 | data[6] << 32 | data[7] << 24 | data[8] << 16 | data[9] << 8 | data[10]);

            bPB = new BootParameterBlock(data);

            exBPB = new ExBootParameterBlock(data);

            bootstrapCode = new byte[448];
            Array.Copy(data, 0x3E, bootstrapCode, 0, bootstrapCode.Length);

            endMarker = (ushort)(data[0x1FE] << 8 | data[0x1FF]);
        }