1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

basenc: perform faster, streaming encoding

Improve the performance, both in memory and time, of the encoding
performed by the basenc (except in --z85 mode), base32, and base64
programs.

These programs now perform encoding in a buffered/streaming manner,
so encoding is not constrained by the amount of available memory.
This commit is contained in:
Andrew Liebenow 2024-09-20 14:34:18 -05:00
parent 50f99580b4
commit 846cf06272
4 changed files with 416 additions and 63 deletions

View file

@ -26,7 +26,9 @@ fn test_invalid_input() {
let error_message = if cfg!(windows) {
"basenc: .: Permission denied\n"
} else {
"basenc: error: invalid input\n"
// TODO
// Other implementations do not show " (os error 21)"
"basenc: read error: Is a directory (os error 21)\n"
};
new_ucmd!()
.args(&["--base32", "."])