mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Remove the ability to support little endian from BigEndianBitConverter.
This commit is contained in:
@@ -85,15 +85,14 @@ namespace DiscImageChef.Decoders.SCSI.MMC
|
||||
{
|
||||
if(CPRMMKBResponse == null) return null;
|
||||
|
||||
CPRMMediaKeyBlock decoded = new CPRMMediaKeyBlock();
|
||||
CPRMMediaKeyBlock decoded = new CPRMMediaKeyBlock
|
||||
{
|
||||
MKBPackData = new byte[CPRMMKBResponse.Length - 4],
|
||||
DataLength = BigEndianBitConverter.ToUInt16(CPRMMKBResponse, 0),
|
||||
Reserved = CPRMMKBResponse[2],
|
||||
TotalPacks = CPRMMKBResponse[3]
|
||||
};
|
||||
|
||||
BigEndianBitConverter.IsLittleEndian = BitConverter.IsLittleEndian;
|
||||
|
||||
decoded.MKBPackData = new byte[CPRMMKBResponse.Length - 4];
|
||||
|
||||
decoded.DataLength = BigEndianBitConverter.ToUInt16(CPRMMKBResponse, 0);
|
||||
decoded.Reserved = CPRMMKBResponse[2];
|
||||
decoded.TotalPacks = CPRMMKBResponse[3];
|
||||
Array.Copy(CPRMMKBResponse, 4, decoded.MKBPackData, 0, CPRMMKBResponse.Length - 4);
|
||||
|
||||
return decoded;
|
||||
|
||||
Reference in New Issue
Block a user