mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Rename Aaru.Console project to Aaru.Logging.
This commit is contained in:
@@ -37,8 +37,8 @@ using System.Runtime.InteropServices;
|
||||
using Aaru.CommonTypes;
|
||||
using Aaru.CommonTypes.Enums;
|
||||
using Aaru.CommonTypes.Interfaces;
|
||||
using Aaru.Console;
|
||||
using Aaru.Helpers;
|
||||
using Aaru.Logging;
|
||||
using Marshal = Aaru.Helpers.Marshal;
|
||||
|
||||
namespace Aaru.Images;
|
||||
@@ -55,7 +55,7 @@ public sealed partial class Qed
|
||||
|
||||
if(stream.Length < 512) return ErrorNumber.InvalidArgument;
|
||||
|
||||
var qHdrB = new byte[68];
|
||||
byte[] qHdrB = new byte[68];
|
||||
stream.EnsureRead(qHdrB, 0, 68);
|
||||
_qHdr = Marshal.SpanToStructureLittleEndian<QedHeader>(qHdrB);
|
||||
|
||||
@@ -127,19 +127,19 @@ public sealed partial class Qed
|
||||
AaruConsole.DebugWriteLine(MODULE_NAME, "qHdr.clusterSectors = {0}", _clusterSectors);
|
||||
AaruConsole.DebugWriteLine(MODULE_NAME, "qHdr.tableSize = {0}", _tableSize);
|
||||
|
||||
var l1TableB = new byte[_tableSize * 8];
|
||||
byte[] l1TableB = new byte[_tableSize * 8];
|
||||
stream.Seek((long)_qHdr.l1_table_offset, SeekOrigin.Begin);
|
||||
stream.EnsureRead(l1TableB, 0, (int)_tableSize * 8);
|
||||
AaruConsole.DebugWriteLine(MODULE_NAME, Localization.Reading_L1_table);
|
||||
_l1Table = MemoryMarshal.Cast<byte, ulong>(l1TableB).ToArray();
|
||||
|
||||
_l1Mask = 0;
|
||||
var c = 0;
|
||||
int c = 0;
|
||||
_clusterBits = Ctz32(_qHdr.cluster_size);
|
||||
_l2Mask = _tableSize - 1 << _clusterBits;
|
||||
_l1Shift = _clusterBits + Ctz32(_tableSize);
|
||||
|
||||
for(var i = 0; i < 64; i++)
|
||||
for(int i = 0; i < 64; i++)
|
||||
{
|
||||
_l1Mask <<= 1;
|
||||
|
||||
@@ -151,7 +151,7 @@ public sealed partial class Qed
|
||||
|
||||
_sectorMask = 0;
|
||||
|
||||
for(var i = 0; i < _clusterBits; i++) _sectorMask = (_sectorMask << 1) + 1;
|
||||
for(int i = 0; i < _clusterBits; i++) _sectorMask = (_sectorMask << 1) + 1;
|
||||
|
||||
AaruConsole.DebugWriteLine(MODULE_NAME, "qHdr.clusterBits = {0}", _clusterBits);
|
||||
AaruConsole.DebugWriteLine(MODULE_NAME, "qHdr.l1Mask = {0:X}", _l1Mask);
|
||||
@@ -219,7 +219,7 @@ public sealed partial class Qed
|
||||
if(!_l2TableCache.TryGetValue(l1Off, out ulong[] l2Table))
|
||||
{
|
||||
_imageStream.Seek((long)_l1Table[l1Off], SeekOrigin.Begin);
|
||||
var l2TableB = new byte[_tableSize * 8];
|
||||
byte[] l2TableB = new byte[_tableSize * 8];
|
||||
_imageStream.EnsureRead(l2TableB, 0, (int)_tableSize * 8);
|
||||
AaruConsole.DebugWriteLine(MODULE_NAME, Localization.Reading_L2_table_0, l1Off);
|
||||
l2Table = MemoryMarshal.Cast<byte, ulong>(l2TableB).ToArray();
|
||||
|
||||
Reference in New Issue
Block a user