Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kspalaiologos authored Dec 14, 2024
1 parent 66cde0b commit 47e8322
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libbz3.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ static u32 lzp_upcast(const u8 * ptr) {
/**
* @brief Check if the buffer size is sufficient for decoding a bz3 block
*
* Data passed to the BWT+BCM step can be one of the following:
* Data passed to the last step can be one of the following:
* - original data
* - original data + LZP
* - original data + RLE
* - original data + RLE + LZP
*
* We must ensure `buffer_size` is large enough to store the data at every step
* when walking backwards from undoing BWT+BCM. The required size may be stored in
* either `lzp_size`, `rle_size` OR `orig_size`.
* when walking backwards. The required size may be stored in either `lzp_size`,
* `rle_size` OR `orig_size`.
*
* @param buffer_size Size of the output buffer
* @param lzp_size Size after LZP decompression (-1 if LZP not used)
Expand Down Expand Up @@ -1050,4 +1050,4 @@ BZIP3_API int bz3_orig_size_sufficient_for_decode(const u8 * block, size_t block
}
if (model & 4) rle_size = read_neutral_s32(block + header_size);
return bz3_check_buffer_size((size_t)orig_size, lzp_size, rle_size, orig_size);
}
}

0 comments on commit 47e8322

Please sign in to comment.