Skip to content

Commit

Permalink
Improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Coder-256 authored and luben committed Nov 30, 2023
1 parent ae1ad52 commit b55246e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/com/github/luben/zstd/ZstdCompressCtx.java
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public void registerSequenceProducer(SequenceProducer producer) {

/**
* Enable or disable sequence producer fallback
* @param fallbackFlag Fall back to an internal sequence producer if a registered external
* @param fallbackFlag fall back to the default internal sequence producer if an external
* sequence producer returns an error code, default: false
*/
public ZstdCompressCtx setSequenceProducerFallback(boolean fallbackFlag){
Expand All @@ -312,6 +312,11 @@ public ZstdCompressCtx setSequenceProducerFallback(boolean fallbackFlag){
}
private static native void setSequenceProducerFallback0(long ptr, boolean fallbackFlag);

/**
* Enable or disable sequence validation. Useful for the sequence-level API
* and with external sequence producers.
* @param validateSequences whether to validate all sequences, default: false
*/
public ZstdCompressCtx setValidateSequences(boolean validateSequences) {
ensureOpen();
acquireSharedLock();
Expand Down

0 comments on commit b55246e

Please sign in to comment.