1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

encoding.base64: change base64 function signatures to use []byte (#8970)

This commit is contained in:
Miccah
2021-02-26 00:22:12 -06:00
committed by GitHub
parent c03798e390
commit d81b6e7805
6 changed files with 139 additions and 41 deletions

View File

@ -4,7 +4,7 @@ fn test_long_encoding() {
repeats := 1000
input_size := 3000
s_original := 'a'.repeat(input_size)
s_original := []byte{len: input_size, init: `a`}
s_encoded := base64.encode(s_original)
s_decoded := base64.decode(s_encoded)