Skip to content

Commit b55246e

Browse files
Coder-256luben
authored andcommitted
Improve docs
1 parent ae1ad52 commit b55246e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/com/github/luben/zstd/ZstdCompressCtx.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ public void registerSequenceProducer(SequenceProducer producer) {
300300

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

315+
/**
316+
* Enable or disable sequence validation. Useful for the sequence-level API
317+
* and with external sequence producers.
318+
* @param validateSequences whether to validate all sequences, default: false
319+
*/
315320
public ZstdCompressCtx setValidateSequences(boolean validateSequences) {
316321
ensureOpen();
317322
acquireSharedLock();

0 commit comments

Comments
 (0)