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 (2)
Constants (1)
Variables (4)
Procedures (8)
Procedure Groups (0)
This section is empty.
Types
Decode_Error ¶
Decode_Error :: enum int { None, Invalid_Character, }
Error ¶
Error :: union { runtime.Allocator_Error, io.Error, Decode_Error, }
Related Procedures With Returns
Constants
Variables
DEC_TABLE ¶
@(rodata) DEC_TABLE: [256]i8 = …
ENC_TABLE ¶
@(rodata) ENC_TABLE: [64]u8 = …
Procedures
encode ¶
encode :: proc(data: []u8, ENC_TBL: [64]u8 = ENC_TABLE, allocator := context.allocator) -> (encoded: string, err: runtime.Allocator_Error) #optional_ok {…}
Procedure Groups
This section is empty.
Source Files
Generation Information
Generated with odin version dev-2026-06 (vendor "odin") Windows_amd64 @ 2026-06-12 21:32:12.832430600 +0000 UTC