3 Commits
1.1.0 ... 1.1.1

Author SHA1 Message Date
Matt Nadareski
668b4bada7 Fix some byte[] -> string printing 2023-09-29 11:42:04 -04:00
Matt Nadareski
36ddb62def Update Models version 2023-09-22 16:05:48 -04:00
Matt Nadareski
1de4cede1b Add nuget package link 2023-09-16 16:19:42 -04:00
3 changed files with 9 additions and 7 deletions

View File

@@ -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
{

View File

@@ -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).

View File

@@ -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>