| ... | @@ -49,8 +49,8 @@ pub fn trimPrefix(in: string, prefix: string) string { | ... | @@ -49,8 +49,8 @@ pub fn trimPrefix(in: string, prefix: string) string { |
| 49 | return in; | 49 | return in; |
| 50 | } | 50 | } |
| 51 | | 51 | |
| 52 | fn base64EncodeAlloc(alloc: *std.mem.Allocator, input: string) !string { | 52 | pub fn base64EncodeAlloc(alloc: *std.mem.Allocator, input: string) !string { |
| 53 | const base64 = std.base64.standard_encoder; | 53 | const base64 = std.base64.standard_encoder; |
| 54 | var buf = try alloc.alloc(u8, base64.calcSize(input.len)); | 54 | var buf = try alloc.alloc(u8, base64.calcSize(input.len)); |
| 55 | return try base64.encode(buf, input); | 55 | return base64.encode(buf, input); |
| 56 | } | 56 | } |