/* skip the rest of the blocks in the frame */
{
int lastBlock = 0;
- size_t readBytes = 0;
do {
BYTE blockHeaderBuffer[3];
U32 blockHeader;
int blockSize;
- readBytes = fread(blockHeaderBuffer, 1, 3, srcFile);
+ size_t readBytes = fread(blockHeaderBuffer, 1, 3, srcFile);
if (readBytes != 3) {
DISPLAY("There was a problem reading the block header\n");
detectError = 1;
break;
}
{
- long const frameSize = MEM_readLE32(frameSizeBuffer);
- int const ret = fseek(srcFile, frameSize, SEEK_CUR);
+ U32 const frameSize = MEM_readLE32(frameSizeBuffer);
+ int const ret = fseek(srcFile, (long)frameSize, SEEK_CUR);
if (ret != 0) {
DISPLAY("Error: could not find end of skippable frame\n");
detectError = 1;
* `--train FILEs`:
Use FILEs as a training set to create a dictionary.
The training set should contain a lot of small files (> 100).
+* `-l`, `--list`:
+ Display information related to a zstd compressed file, such as size, ratio, and checksum.
+ Some of these fields may not be available.
+ This command can be augmented with the `-v` modifier.
### Operation modifiers