A 6-bit string encoding library for .NET-Standard.
- See my website for more details (german)
Supports serializing A-Z, a-z, 0-9 and _ with just 6 bits each. All other characters are serialized with 24 bits. This makes MiniString ideal for saving machine generated strings such as IDs.
$ dotnet build
byte[] MiniString.Encode(string text)
string MiniString.Decode(byte[] bytes)
MiniString.Encode("Hello_World");
// [82, 10, 195, 243, 31, 206, 54, 140, 2]
// 11 characters have been serialized to 8 bytes!