Skip to content

Commit

Permalink
adding LZ4F_resetDecompressionContext
Browse files Browse the repository at this point in the history
  • Loading branch information
roncohen committed Apr 21, 2021
1 parent 59cc025 commit 0279fa8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lz4-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,13 @@ extern "C" {
// int LZ4_freeStreamDecode(LZ4_streamDecode_t* LZ4_stream)
pub fn LZ4_freeStreamDecode(LZ4_stream: *mut LZ4StreamDecode) -> c_int;

// LZ4F_resetDecompressionContext()
// In case of an error, the context is left in "undefined" state.
// In which case, it's necessary to reset it, before re-using it.
// This method can also be used to abruptly stop any unfinished decompression,
// and start a new one using same context resources.
pub fn LZ4F_resetDecompressionContext(ctx: LZ4FDecompressionContext);

}

#[test]
Expand Down

0 comments on commit 0279fa8

Please sign in to comment.