aboutsummaryrefslogtreecommitdiff
path: root/core/encoding/base64
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2026-02-12 18:19:24 +0100
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2026-02-12 18:19:24 +0100
commitc0300a33039ab003cbf105c082fe43de4b17ab96 (patch)
treeb2a725d684c4da52757591c864828554a919db8d /core/encoding/base64
parent8cb22d9685c6fb59784514b36e91991ca759b847 (diff)
Remove `core:mem` imports from `core:encoding`.
Diffstat (limited to 'core/encoding/base64')
-rw-r--r--core/encoding/base64/base64.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/encoding/base64/base64.odin b/core/encoding/base64/base64.odin
index 0677fdfb7..1488e2201 100644
--- a/core/encoding/base64/base64.odin
+++ b/core/encoding/base64/base64.odin
@@ -9,8 +9,8 @@ truncate it from the encoded output.
*/
package encoding_base64
+import "base:runtime"
import "core:io"
-import "core:mem"
import "core:strings"
ENC_TABLE := [64]byte {
@@ -110,7 +110,7 @@ DEC_URL_TABLE := [256]u8 {
}
-encode :: proc(data: []byte, ENC_TBL := ENC_TABLE, allocator := context.allocator) -> (encoded: string, err: mem.Allocator_Error) #optional_allocator_error {
+encode :: proc(data: []byte, ENC_TBL := ENC_TABLE, allocator := context.allocator) -> (encoded: string, err: runtime.Allocator_Error) #optional_allocator_error {
out_length := encoded_len(data)
if out_length == 0 {
return
@@ -161,7 +161,7 @@ encoded_len :: proc(data: []byte) -> int {
return ((4 * length / 3) + 3) &~ 3
}
-decode :: proc(data: string, DEC_TBL := DEC_TABLE, allocator := context.allocator) -> (decoded: []byte, err: mem.Allocator_Error) #optional_allocator_error {
+decode :: proc(data: string, DEC_TBL := DEC_TABLE, allocator := context.allocator) -> (decoded: []byte, err: runtime.Allocator_Error) #optional_allocator_error {
out_length := decoded_len(data)
out := strings.builder_make(0, out_length, allocator) or_return