Class Binary2RomHeader
- Namespace
- SceneGate.Ekona.Containers.Rom
- Assembly
- SceneGate.Ekona.dll
Converter for binary ROM header into an object.
public class Binary2RomHeader : IConverter<IBinary, RomHeader>, IConverter
- Inheritance
-
Binary2RomHeader
- Implements
-
IConverter
- Inherited Members
Constructors
Binary2RomHeader()
Initializes a new instance of the Binary2RomHeader class.
public Binary2RomHeader()
Binary2RomHeader(DsiKeyStore)
Initializes a new instance of the Binary2RomHeader class.
public Binary2RomHeader(DsiKeyStore keyStore)
Parameters
keyStore
DsiKeyStoreThe converter parameters.
Remarks
The key store is used to verify a special token and set the value of DisableSecureArea
.
Otherwise, it will always be false
. The required key is BlowfishDsKey
.
Exceptions
- ArgumentNullException
The argument is null.
Properties
HeaderSizeOffset
Gets the offset in the header containing the header size value.
public static int HeaderSizeOffset { get; }
Property Value
Methods
Convert(IBinary)
Convert a binary format into a ROM header object.
public RomHeader Convert(IBinary source)
Parameters
source
IBinaryThe stream to read.
Returns
- RomHeader
The new ROM header.