mirror of
https://github.com/aaru-dps/Aaru.Decoders.git
synced 2025-12-16 19:24:32 +00:00
Code restyling.
This commit is contained in:
@@ -221,8 +221,8 @@ namespace Aaru.Decoders.MMC
|
||||
if(response.Length != 512)
|
||||
return null;
|
||||
|
||||
GCHandle handle = GCHandle.Alloc(response, GCHandleType.Pinned);
|
||||
var csd = (ExtendedCSD)Marshal.PtrToStructure(handle.AddrOfPinnedObject(), typeof(ExtendedCSD));
|
||||
var handle = GCHandle.Alloc(response, GCHandleType.Pinned);
|
||||
var csd = (ExtendedCSD)Marshal.PtrToStructure(handle.AddrOfPinnedObject(), typeof(ExtendedCSD));
|
||||
handle.Free();
|
||||
|
||||
return csd;
|
||||
@@ -473,7 +473,7 @@ namespace Aaru.Decoders.MMC
|
||||
sb.AppendFormat("\tDevice has a {0} KiB boot partition", csd.BootPartitionSize * 128).AppendLine();
|
||||
|
||||
if((csd.AccessSize & 0x0F) > 0)
|
||||
sb.AppendFormat("\tDevice has a page size of {0} KiB", (csd.AccessSize & 0x0F) * 512.0 / 1024.0).
|
||||
sb.AppendFormat("\tDevice has a page size of {0} KiB", ((csd.AccessSize & 0x0F) * 512.0) / 1024.0).
|
||||
AppendLine();
|
||||
|
||||
if(csd.HighCapacityEraseUnitSize > 0)
|
||||
|
||||
@@ -38,9 +38,9 @@ namespace Aaru.Decoders.MMC
|
||||
{
|
||||
switch(mmcVendorId)
|
||||
{
|
||||
case 0x15: return"Samsung";
|
||||
case 0x2C: return"extreMEmory";
|
||||
default: return$"Unknown manufacturer ID 0x{mmcVendorId:X2}";
|
||||
case 0x15: return "Samsung";
|
||||
case 0x2C: return "extreMEmory";
|
||||
default: return $"Unknown manufacturer ID 0x{mmcVendorId:X2}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user