| ... | ... | @@ -49,17 +49,13 @@ pub const MAX_PATH_BYTES = switch (builtin.os.tag) { |
| 49 | 49 | else => @compileError("Unsupported OS"), |
| 50 | 50 | }; |
| 51 | 51 | |
| 52 | | /// Base64, replacing the standard `+/` with `-_` so that it can be used in a file name on any filesystem. |
| 53 | | pub const base64_encoder = base64.Base64Encoder.init( |
| 54 | | "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_", |
| 55 | | base64.standard_pad_char, |
| 56 | | ); |
| 57 | | |
| 58 | | /// Base64, replacing the standard `+/` with `-_` so that it can be used in a file name on any filesystem. |
| 59 | | pub const base64_decoder = base64.Base64Decoder.init( |
| 60 | | "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_", |
| 61 | | base64.standard_pad_char, |
| 62 | | ); |
| 52 | pub const base64_alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"; |
| 53 | |
| 54 | /// Base64 encoder, replacing the standard `+/` with `-_` so that it can be used in a file name on any filesystem. |
| 55 | pub const base64_encoder = base64.Base64Encoder.init(base64_alphabet, base64.standard_pad_char); |
| 56 | |
| 57 | /// Base64 decoder, replacing the standard `+/` with `-_` so that it can be used in a file name on any filesystem. |
| 58 | pub const base64_decoder = base64.Base64Decoder.init(base64_alphabet, base64.standard_pad_char); |
| 63 | 59 | |
| 64 | 60 | /// Whether or not async file system syscalls need a dedicated thread because the operating |
| 65 | 61 | /// system does not support non-blocking I/O on the file system. |