mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
encoding/base32: Set optimization mode for decode()
This commit is contained in:
@@ -111,6 +111,7 @@ _encode :: proc(out, data: []byte, ENC_TBL := ENC_TABLE, allocator := context.al
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@(optimization_mode="favor_size")
|
||||||
decode :: proc(data: string, DEC_TBL := DEC_TABLE, allocator := context.allocator) -> (out: []byte, err: Error) {
|
decode :: proc(data: string, DEC_TBL := DEC_TABLE, allocator := context.allocator) -> (out: []byte, err: Error) {
|
||||||
if len(data) == 0 {
|
if len(data) == 0 {
|
||||||
return nil, .None
|
return nil, .None
|
||||||
|
|||||||
Reference in New Issue
Block a user