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 with simplified API. Requires alloc feature.

Modules

Low level functions
Functions to work with uninit memory
High level functions returning vector as convenience

Constants

Base64 padding character

Statics

Default character table used by based64
Alternative table URL safe.

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).