mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Make Encoding a private field only for IReadOnlyFilesystem implementors.
This commit is contained in:
@@ -70,9 +70,9 @@ public sealed partial class VMfs
|
||||
public void GetInformation(IMediaImage imagePlugin, Partition partition, Encoding encoding, out string information,
|
||||
out FileSystem metadata)
|
||||
{
|
||||
Encoding = encoding ?? Encoding.UTF8;
|
||||
information = "";
|
||||
metadata = new FileSystem();
|
||||
encoding ??= Encoding.UTF8;
|
||||
information = "";
|
||||
metadata = new FileSystem();
|
||||
ulong vmfsSuperOff = VMFS_BASE / imagePlugin.Info.SectorSize;
|
||||
ErrorNumber errno = imagePlugin.ReadSector(partition.Start + vmfsSuperOff, out byte[] sector);
|
||||
|
||||
@@ -92,7 +92,7 @@ public sealed partial class VMfs
|
||||
|
||||
sbInformation.AppendFormat(Localization.Volume_version_0, volInfo.version).AppendLine();
|
||||
|
||||
sbInformation.AppendFormat(Localization.Volume_name_0, StringHandlers.CToString(volInfo.name, Encoding)).
|
||||
sbInformation.AppendFormat(Localization.Volume_name_0, StringHandlers.CToString(volInfo.name, encoding)).
|
||||
AppendLine();
|
||||
|
||||
sbInformation.AppendFormat(Localization.Volume_size_0_bytes, volInfo.size * 256).AppendLine();
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Text;
|
||||
using Aaru.CommonTypes.Interfaces;
|
||||
|
||||
namespace Aaru.Filesystems;
|
||||
@@ -39,8 +38,6 @@ namespace Aaru.Filesystems;
|
||||
SuppressMessage("ReSharper", "UnusedMember.Local")]
|
||||
public sealed partial class VMfs : IFilesystem
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public Encoding Encoding { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public string Name => Localization.VMfs_Name;
|
||||
/// <inheritdoc />
|
||||
|
||||
Reference in New Issue
Block a user