mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
General code cleanup and style refactor.
This commit is contained in:
@@ -30,8 +30,6 @@
|
||||
// Copyright © 2011-2022 Natalia Portillo
|
||||
// ****************************************************************************/
|
||||
|
||||
namespace Aaru.Filesystems;
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
@@ -43,6 +41,8 @@ using Aaru.Helpers;
|
||||
using Schemas;
|
||||
using Marshal = Aaru.Helpers.Marshal;
|
||||
|
||||
namespace Aaru.Filesystems;
|
||||
|
||||
/// <inheritdoc />
|
||||
/// <summary>Implements detection of the Locus filesystem</summary>
|
||||
public sealed class RBF : IFilesystem
|
||||
@@ -76,9 +76,9 @@ public sealed class RBF : IFilesystem
|
||||
0, 4, 15
|
||||
})
|
||||
{
|
||||
var location = (ulong)i;
|
||||
ulong location = (ulong)i;
|
||||
|
||||
var sbSize = (uint)(Marshal.SizeOf<IdSector>() / imagePlugin.Info.SectorSize);
|
||||
uint sbSize = (uint)(Marshal.SizeOf<IdSector>() / imagePlugin.Info.SectorSize);
|
||||
|
||||
if(Marshal.SizeOf<IdSector>() % imagePlugin.Info.SectorSize != 0)
|
||||
sbSize++;
|
||||
@@ -126,8 +126,8 @@ public sealed class RBF : IFilesystem
|
||||
0, 4, 15
|
||||
})
|
||||
{
|
||||
var location = (ulong)i;
|
||||
var sbSize = (uint)(Marshal.SizeOf<IdSector>() / imagePlugin.Info.SectorSize);
|
||||
ulong location = (ulong)i;
|
||||
uint sbSize = (uint)(Marshal.SizeOf<IdSector>() / imagePlugin.Info.SectorSize);
|
||||
|
||||
if(Marshal.SizeOf<IdSector>() % imagePlugin.Info.SectorSize != 0)
|
||||
sbSize++;
|
||||
|
||||
Reference in New Issue
Block a user