base_u256 0.1.1

base-u256 is to utf-8 as base-64 is to ascii
Documentation
  • Coverage
  • 0%
    0 out of 12 items documented0 out of 9 items with examples
  • Size
  • Source code size: 28.1 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.02 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 44s Average build duration of successful builds.
  • all releases: 44s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • mocsy/base_u256
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • mocsy

base-u256 encode/decode

base-u256 is to utf-8 as base-64 is to ascii

base64 takes 3 bytes at a time and then converts them to 4 bytes each with 64 possibilities.

bits possibilities
2^24 16777216
64^4 16777216

base-u256 takes 3 bytes at a time and then converts them to 3 utf-8 2 byte characters each with 256 possibilities.

The encoded bytes is exactly two times larger than the original binary.

bits possibilities
2^24 16777216
256^3 16777216

base-u1024 encode/decode

base-u1024 takes 30 bits at a time and then converts them to 3 utf-8 2 byte characters each with 1024 possibilities.

The encoded bytes is 1.5 times larger than the original binary.

bits possibilities
2^30 1073741824
1024^3 1073741824