Skip to content

.Net Standard compatible managed AUDALF implementation in C#

License

Notifications You must be signed in to change notification settings

mcraiha/CSharp-AUDALF

Repository files navigation

CSharp-AUDALF

.Net Standard compatible AUDALF implementation in C#

Build status

.NET Core Codacy Badge

Why?

Because I needed this for my personal project

How do I use this?

Either copy the AUDALF-deserialize.cs, AUDALF-serialize.cs and Common.cs files to your project or use nuget package

Then do code like

using CSharp_AUDALF;

Dictionary<string, string> someDictionary = new Dictionary<string, string>()
{
    { "one", "value is here"},
    { "thirteen", "important data here" }
};

// Serialize
byte[] serializedBytes = AUDALF_Serialize.Serialize(someDictionary);

// Deserialize
Dictionary<string, string> fromBytes = AUDALF_Deserialize.Deserialize<string, string>(serializedBytes);

// Or deserialize single value
string deserializedString = AUDALF_Deserialize.DeserializeSingleValue<string,string>(serializedBytes, "one");

What types are currently supported

byte (single value and array), int (single value and array), long (single value and array), ushort (single value and array), uint (single value and array), float, double, string, boolean, BigInteger, datetime

Test cases

You can run test cases by moving to tests folder and running following command

dotnet test

License

All the code is licensed under Unlicense

About

.Net Standard compatible managed AUDALF implementation in C#

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published