GON.TlvExtensions 1.1.2

dotnet add package GON.TlvExtensions --version 1.1.2                
NuGet\Install-Package GON.TlvExtensions -Version 1.1.2                
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="GON.TlvExtensions" Version="1.1.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GON.TlvExtensions --version 1.1.2                
#r "nuget: GON.TlvExtensions, 1.1.2"                
#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 GON.TlvExtensions as a Cake Addin
#addin nuget:?package=GON.TlvExtensions&version=1.1.2

// Install GON.TlvExtensions as a Cake Tool
#tool nuget:?package=GON.TlvExtensions&version=1.1.2                

GON.TlvExtensions

What is does?

.Net Extenstions to simplify work with SIMPLE-TLV and BER-TLV arrays

Nuget Package

NuGet package link

Examples

Splitting BER-TLV Array for TLV List

var tlv = "9f1003a1a2a3 5A055152535455 9f4800 9F448101FF 3F8182835501BB 8F03AAAAAA".SplitToTlvStrings();

foreach (var item in tlv)
{
    Console.WriteLine($"{item.GetTlvTagHex(),10} : {item.GetTlvLenHex(),5} : {item.GetTlvValHex()}");
}
//      9F10 :    03 : A1A2A3
//        5A :    05 : 5152535455
//      9F48 :    00 :
//      9F44 :  8101 : FF
//3F81828355 :    01 : BB
//        8F :    03 : AAAAAA

Splitting BER-TLV Array for TLV Dictionary with Tag as a Key

var tlv = "9f1003a1a2a3 5A055152535455 9f4800 9F448101FF 3F8182835501BB 8F03AAAAAA".ToTlvDictionary();

foreach (var item in tlv)
{
    Console.WriteLine($"{item.Key,10} : {item.Value.GetTlvValHex()}");
}
//      9F10 : A1A2A3
//        5A : 5152535455
//      9F48 :
//      9F44 : FF
//3F81828355 : BB
//        8F : AAAAAA

Getting by a tag name a specific TLV from the BER-TLV Array

var tlv = "9f1003a1a2a3 5A055152535455 9f4800 9F448101FF 3F8182835501BB 8F03AAAAAA";
var tag = tlv.FindTag("5A");
Console.WriteLine($"{tag.GetTlvTagHex()} : {tag.GetTlvLenHex()} : {tag.GetTlvValHex()}");
//5A : 05 : 5152535455

Making a BER-TLV structure from a Tag name and Value

var data = "0102030405".WrapTlv("50");
Console.WriteLine(data);
//50050102030405
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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 netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.0 is compatible.  netstandard1.1 was computed.  netstandard1.2 was computed.  netstandard1.3 was computed.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 was computed.  netstandard2.1 was computed. 
.NET Framework net35 is compatible.  net40 was computed.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  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 tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Windows Phone wp8 was computed.  wp81 was computed.  wpa81 was computed. 
Windows Store netcore was computed.  netcore45 was computed.  netcore451 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.

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.2 543 9/21/2022
1.1.1 391 9/21/2022
1.1.0 394 9/21/2022
1.0.0 393 9/20/2022