Crate based64

source ·
Expand description

BASE64 library for chads

Features

  • alloc - Enables usage of heap based collections;

API

  • raw - Contains functions to work with raw pointers. Mostly unsafe.
  • uninit - Contains functions to work with unintialized slices.
  • vec - Contains high level functions that returns Vec. Requires alloc feature.
  • string - Contains high level functions that returns String. Requires alloc feature.
  • Codec - Wrapper that allows to pre-built lookup table for decoding. Useful if you want to safe tiny bit on building lookup table.

Modules

  • Low level functions
  • API that returns String
  • Functions to work with uninit memory
  • High level functions returning vector as convenience

Structs

Constants

  • Base64 padding character

Statics

Functions

  • Validates custom character table by requiring user to provide table of specific size containing only ASCII characters.
  • Decoding function writing to slice.
  • Returns number of bytes necessary to decode provided input.
  • Encoding function writing to slice.
  • Returns number of bytes necessary to encode input of provided size (including padding).