Skip to main content

Module base64

Module base64 

Source
Expand description

Functions for converting data in [GenericBinaryArray] such as StringArray to/from base64 encoded strings

Re-exportsยง

use arrow_array::Array; ๐Ÿ”’
use arrow_array::GenericBinaryArray; ๐Ÿ”’
use arrow_array::GenericStringArray; ๐Ÿ”’
use arrow_array::OffsetSizeTrait; ๐Ÿ”’
use arrow_buffer::Buffer; ๐Ÿ”’
use arrow_buffer::OffsetBuffer; ๐Ÿ”’
use arrow_schema::ArrowError; ๐Ÿ”’
use base64::encoded_len; ๐Ÿ”’
use base64::engine::Config; ๐Ÿ”’

Constantsยง

BASE64_STANDARD
A [GeneralPurpose] engine using the [alphabet::STANDARD] base64 alphabet and [PAD] config.
BASE64_STANDARD_NO_PAD
A [GeneralPurpose] engine using the [alphabet::STANDARD] base64 alphabet and [NO_PAD] config.
BASE64_URL_SAFE
A [GeneralPurpose] engine using the [alphabet::URL_SAFE] base64 alphabet and [PAD] config.
BASE64_URL_SAFE_NO_PAD
A [GeneralPurpose] engine using the [alphabet::URL_SAFE] base64 alphabet and [NO_PAD] config.

Traitsยง

Engine
An Engine provides low-level encoding and decoding operations that all other higher-level parts of the API use. Users of the library will generally not need to implement this.

Functionsยง

b64_decode
Base64 decode each element of array with the provided Engine
b64_encode
Base64 encode each element of array with the provided Engine