mirror of
https://github.com/facebook/zstd.git
synced 2025-12-24 17:21:03 +03:00
added long commands --memory= and --memlimit-decompress=
This commit is contained in:
@@ -281,6 +281,16 @@ int main(int argCount, const char* argv[])
|
||||
memLimit = readU32FromChar(&argument);
|
||||
continue;
|
||||
}
|
||||
if (!strncmp(argument, "--memory=", strlen("--memory="))) {
|
||||
argument += strlen("--memory=");
|
||||
memLimit = readU32FromChar(&argument);
|
||||
continue;
|
||||
}
|
||||
if (!strncmp(argument, "--memlimit-decompress=", strlen("--memlimit-decompress="))) {
|
||||
argument += strlen("--memlimit-decompress=");
|
||||
memLimit = readU32FromChar(&argument);
|
||||
continue;
|
||||
}
|
||||
|
||||
/* '-' means stdin/stdout */
|
||||
if (!strcmp(argument, "-")){
|
||||
|
||||
Reference in New Issue
Block a user