Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

MiniString

A 6-bit string encoding library for .NET-Standard.

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.

Compile

$ dotnet build

Usage

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!

About

A 6-bit string encoding library for .NET-Standard. πŸ“

Topics

Resources

License

Releases

No releases published

Packages

No packages published

Languages