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