mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 08:47:28 +01:00
Change ractool drange syntax from i:j to i..j
This is more consistent with the RAC spec, and on the Windows command line the colon might be confused with the ":" in "C:\" names.
This commit is contained in:
1 parent
b8cd560594
commit
a97dac93e1
2 files changed
+18
-18
No files matched your search
+6
-6
@@ -63,15 +63,15 @@ or temporary disk space.
|
||||
Examples:
|
||||
|
||||
ractool -decode foo.rac | sha256sum
|
||||
ractool -decode -drange=400:500 foo.rac
|
||||
ractool -decode -drange=400..500 foo.rac
|
||||
ractool -encode foo.dat > foo.rac
|
||||
ractool -encode -codec=zlib -dchunksize=256k foo.dat > foo.rac
|
||||
|
||||
The "400:500" flag value means the 100 bytes ranging from a DSpace offset
|
||||
The "400..500" flag value means the 100 bytes ranging from a DSpace offset
|
||||
(offset in terms of decompressed bytes, not compressed bytes) of 400
|
||||
(inclusive) to 500 (exclusive). Either or both bounds may be omitted, similar
|
||||
to Go slice syntax. A "400:" flag value would mean ranging from 400 (inclusive)
|
||||
to the end of the decompressed file.
|
||||
to Rust slice syntax. A "400.." flag value would mean ranging from 400
|
||||
(inclusive) to the end of the decompressed file.
|
||||
|
||||
The "256k" flag value means 256 kibibytes (262144 bytes), as does "256K".
|
||||
Similarly, "1m" and "1M" both mean 1 mebibyte (1048576 bytes).
|
||||
@@ -86,7 +86,7 @@ General Flags:
|
||||
Decode-Related Flags:
|
||||
|
||||
-drange
|
||||
the "i:j" range to decompress, ":8" means the first 8 bytes
|
||||
the "i..j" range to decompress, "..8" means the first 8 bytes
|
||||
-singlethreaded
|
||||
whether to decode on a single execution thread
|
||||
|
||||
@@ -154,7 +154,7 @@ Extended Example:
|
||||
real 0m0.392s
|
||||
user 0m0.407s
|
||||
sys 0m0.118s
|
||||
$ time ractool -decode -drange=50000000:50000008 shared.rac
|
||||
$ time ractool -decode -drange=50000000..50000008 shared.rac
|
||||
Business
|
||||
real 0m0.003s
|
||||
user 0m0.004s
|
||||
|
||||
Reference in new issue
Block a user