From c0300a33039ab003cbf105c082fe43de4b17ab96 Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Thu, 12 Feb 2026 18:19:24 +0100 Subject: Remove `core:mem` imports from `core:encoding`. --- core/encoding/base64/base64.odin | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/encoding/base64') 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 -- cgit v1.2.3