KbinXml.Net 1.0.6

There is a newer version of this package available.
See the version list below for details.
dotnet add package KbinXml.Net --version 1.0.6                
NuGet\Install-Package KbinXml.Net -Version 1.0.6                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="KbinXml.Net" Version="1.0.6" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add KbinXml.Net --version 1.0.6                
#r "nuget: KbinXml.Net, 1.0.6"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install KbinXml.Net as a Cake Addin
#addin nuget:?package=KbinXml.Net&version=1.0.6

// Install KbinXml.Net as a Cake Tool
#tool nuget:?package=KbinXml.Net&version=1.0.6                

KBinXml.Net

High performance .NET library for encoding/decoding Komani's binary XML format.

Usage

using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Xml;
using System.Xml.Linq;
using KbinXml.Net;

namespace ManualTests;

public class Program
{
    static void Main(string[] args)
    {
        byte[] kbin = File.ReadAllBytes("test.bin");

        byte[] xmlBytes = KbinConverter.ReadXmlBytes(kbin);
        XDocument linq = KbinConverter.ReadXmlLinq(kbin);
        XmlDocument w3cXml = KbinConverter.ReadXml(kbin);

        string xmlStr = linq.ToString();

        byte[] newKbin1 = KbinConverter.Write(xmlBytes, KnownEncodings.UTF8);
        byte[] newKbin2 = KbinConverter.Write(linq, KnownEncodings.UTF8);
        byte[] newKbin3 = KbinConverter.Write(xmlStr, KnownEncodings.UTF8);

        Debug.Assert(newKbin1.SequenceEqual(newKbin2));
        Debug.Assert(newKbin2.SequenceEqual(newKbin3));

        Console.WriteLine(xmlStr);
    }
}

Performance

This library is inspired by FSH-B/kbinxmlcs and optimized for taking RAM usage (including allocating and GC) and CPU time as less as possible. The library was both optimized for latest .NET Core (3.1+) and .NET Framework (4.6.1+), which means even on the legacy .NET Framework, the library will still have appreciable performance.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 998 11/24/2023
1.0.6 563 10/19/2023
1.0.5 1,311 3/26/2022
1.0.4 1,280 3/21/2022
1.0.4-beta.1 128 3/6/2022
1.0.3 944 3/5/2022
1.0.2 930 2/20/2022
1.0.1 966 2/17/2022
1.0.0 857 2/17/2022
1.0.0-alpha.3 127 2/8/2022
1.0.0-alpha.2 121 2/7/2022