package core:encoding/base64

⌘K
Ctrl+K
or
/

    Overview

    Base64 encoding and decoding.

    A secondary param can be used to supply a custom alphabet to encode and a matching decoding table to decode.

    If none is supplied it just uses the standard Base64 alphabet. In case your specific version does not use padding, you may truncate it from the encoded output.

    Index

    Types (0)

    This section is empty.

    Constants (1)
    Variables (2)
    Procedure Groups (0)

    This section is empty.

    Types

    This section is empty.

    Constants

    PADDING ¶

    PADDING :: '='

    Variables

    DEC_TABLE ¶

    DEC_TABLE: [128]int = …

    ENC_TABLE ¶

    ENC_TABLE: [64]u8 = …

    Procedures

    decode ¶

    decode :: proc(data: string, DEC_TBL: [128]int = DEC_TABLE, allocator := context.allocator) -> (decoded: []u8, err: runtime.Allocator_Error) #optional_ok {…}

    decode_into ¶

    decode_into :: proc(w: io.Stream, data: string, DEC_TBL: [128]int = DEC_TABLE) -> io.Error {…}

    decoded_len ¶

    decoded_len :: proc(data: string) -> int {…}

    encode ¶

    encode :: proc(data: []u8, ENC_TBL: [64]u8 = ENC_TABLE, allocator := context.allocator) -> (encoded: string, err: runtime.Allocator_Error) #optional_ok {…}

    encode_into ¶

    encode_into :: proc(w: io.Stream, data: []u8, ENC_TBL: [64]u8 = ENC_TABLE) -> io.Error {…}

    encoded_len ¶

    encoded_len :: proc(data: []u8) -> int {…}

    Procedure Groups

    This section is empty.

    Source Files

    Generation Information

    Generated with odin version dev-2025-10 (vendor "odin") Windows_amd64 @ 2025-10-10 13:03:13.977720800 +0000 UTC