mirror of
https://github.com/SabreTools/SabreTools.Printing.git
synced 2026-04-22 06:03:32 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
668b4bada7 | ||
|
|
36ddb62def | ||
|
|
1de4cede1b |
@@ -311,7 +311,7 @@ namespace SabreTools.Printing
|
||||
continue;
|
||||
}
|
||||
|
||||
builder.AppendLine(entry.Name, " Name");
|
||||
builder.AppendLine(entry.Name, " Name", Encoding.ASCII);
|
||||
builder.AppendLine(entry.VirtualSize, " Virtual size");
|
||||
builder.AppendLine(entry.VirtualAddress, " Virtual address");
|
||||
builder.AppendLine(entry.VirtualAddress.ConvertVirtualAddress(table ?? Array.Empty<SectionHeader>()), " Physical address");
|
||||
@@ -360,7 +360,7 @@ namespace SabreTools.Printing
|
||||
{
|
||||
if (entry.ShortName != null)
|
||||
{
|
||||
builder.AppendLine(entry.ShortName, " Short name");
|
||||
builder.AppendLine(entry.ShortName, " Short name", Encoding.ASCII);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -438,7 +438,7 @@ namespace SabreTools.Printing
|
||||
}
|
||||
else if (currentSymbolType == 4)
|
||||
{
|
||||
builder.AppendLine(entry.AuxFormat4FileName, " File name");
|
||||
builder.AppendLine(entry.AuxFormat4FileName, " File name", Encoding.ASCII);
|
||||
auxSymbolsRemaining--;
|
||||
}
|
||||
else if (currentSymbolType == 5)
|
||||
@@ -1036,7 +1036,7 @@ namespace SabreTools.Printing
|
||||
if (entry.NameOffset != default)
|
||||
{
|
||||
builder.AppendLine(entry.NameOffset, $"{padding}Name offset");
|
||||
builder.AppendLine(entry.Name?.UnicodeString, $"{padding}Name ({entry.Name?.Length ?? 0})");
|
||||
builder.AppendLine(entry.Name?.UnicodeString, $"{padding}Name ({entry.Name?.Length ?? 0})", Encoding.Unicode);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# SabreTools.Printing
|
||||
|
||||
This library comprises of code to output human-readable representations of various (usually binary) models. All of the classes here are `static` and utilize `StringBuilder`.
|
||||
|
||||
Find the link to the Nuget package [here](https://www.nuget.org/packages/SabreTools.Printing).
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<!-- Assembly Properties -->
|
||||
<TargetFrameworks>net48;net6.0;net7.0;net8.0</TargetFrameworks>
|
||||
<RuntimeIdentifiers>win-x86;win-x64;linux-x64;osx-x64</RuntimeIdentifiers>
|
||||
<Version>1.1.0</Version>
|
||||
<Version>1.1.1</Version>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
|
||||
<!-- Package Properties -->
|
||||
@@ -30,8 +30,8 @@
|
||||
<ItemGroup>
|
||||
<PackageReference Include="SabreTools.ASN1" Version="1.1.0" />
|
||||
<PackageReference Include="SabreTools.IO" Version="1.1.1" />
|
||||
<PackageReference Include="SabreTools.Models" Version="1.1.2" />
|
||||
<PackageReference Include="SabreTools.Serialization" Version="1.1.5" />
|
||||
<PackageReference Include="SabreTools.Models" Version="1.1.4" />
|
||||
<PackageReference Include="SabreTools.Serialization" Version="1.1.6" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user