aboutsummaryrefslogtreecommitdiff
path: root/core/encoding/base64/base64.odin
diff options
context:
space:
mode:
Diffstat (limited to 'core/encoding/base64/base64.odin')
-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