org.lwjgl.util.zstd.ZstdErrors Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-zstd Show documentation
Show all versions of lwjgl-zstd Show documentation
A fast lossless compression algorithm, targeting real-time compression scenarios at zlib-level and better compression ratios.
The newest version!
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.util.zstd;
import org.lwjgl.system.*;
import static org.lwjgl.system.MemoryUtil.*;
/** Native bindings to the experimental error code API of Zstandard (zstd). */
public class ZstdErrors {
static { LibZstd.initialize(); }
/**
* Error code. ({@code ZSTD_ErrorCode})
*
* Enum values:
*
*
* - {@link #ZSTD_error_no_error error_no_error}
* - {@link #ZSTD_error_GENERIC error_GENERIC}
* - {@link #ZSTD_error_prefix_unknown error_prefix_unknown}
* - {@link #ZSTD_error_version_unsupported error_version_unsupported}
* - {@link #ZSTD_error_frameParameter_unsupported error_frameParameter_unsupported}
* - {@link #ZSTD_error_frameParameter_windowTooLarge error_frameParameter_windowTooLarge}
* - {@link #ZSTD_error_corruption_detected error_corruption_detected}
* - {@link #ZSTD_error_checksum_wrong error_checksum_wrong}
* - {@link #ZSTD_error_literals_headerWrong error_literals_headerWrong}
* - {@link #ZSTD_error_dictionary_corrupted error_dictionary_corrupted}
* - {@link #ZSTD_error_dictionary_wrong error_dictionary_wrong}
* - {@link #ZSTD_error_dictionaryCreation_failed error_dictionaryCreation_failed}
* - {@link #ZSTD_error_parameter_unsupported error_parameter_unsupported}
* - {@link #ZSTD_error_parameter_combination_unsupported error_parameter_combination_unsupported}
* - {@link #ZSTD_error_parameter_outOfBound error_parameter_outOfBound}
* - {@link #ZSTD_error_tableLog_tooLarge error_tableLog_tooLarge}
* - {@link #ZSTD_error_maxSymbolValue_tooLarge error_maxSymbolValue_tooLarge}
* - {@link #ZSTD_error_maxSymbolValue_tooSmall error_maxSymbolValue_tooSmall}
* - {@link #ZSTD_error_stabilityCondition_notRespected error_stabilityCondition_notRespected}
* - {@link #ZSTD_error_stage_wrong error_stage_wrong}
* - {@link #ZSTD_error_init_missing error_init_missing}
* - {@link #ZSTD_error_memory_allocation error_memory_allocation}
* - {@link #ZSTD_error_workSpace_tooSmall error_workSpace_tooSmall}
* - {@link #ZSTD_error_dstSize_tooSmall error_dstSize_tooSmall}
* - {@link #ZSTD_error_srcSize_wrong error_srcSize_wrong}
* - {@link #ZSTD_error_dstBuffer_null error_dstBuffer_null}
* - {@link #ZSTD_error_noForwardProgress_destFull error_noForwardProgress_destFull}
* - {@link #ZSTD_error_noForwardProgress_inputEmpty error_noForwardProgress_inputEmpty}
* - {@link #ZSTD_error_frameIndex_tooLarge error_frameIndex_tooLarge}
* - {@link #ZSTD_error_seekableIO error_seekableIO}
* - {@link #ZSTD_error_dstBuffer_wrong error_dstBuffer_wrong}
* - {@link #ZSTD_error_srcBuffer_wrong error_srcBuffer_wrong}
* - {@link #ZSTD_error_sequenceProducer_failed error_sequenceProducer_failed}
* - {@link #ZSTD_error_externalSequences_invalid error_externalSequences_invalid}
*
*/
public static final int
ZSTD_error_no_error = 0,
ZSTD_error_GENERIC = 1,
ZSTD_error_prefix_unknown = 10,
ZSTD_error_version_unsupported = 12,
ZSTD_error_frameParameter_unsupported = 14,
ZSTD_error_frameParameter_windowTooLarge = 16,
ZSTD_error_corruption_detected = 20,
ZSTD_error_checksum_wrong = 22,
ZSTD_error_literals_headerWrong = 24,
ZSTD_error_dictionary_corrupted = 30,
ZSTD_error_dictionary_wrong = 32,
ZSTD_error_dictionaryCreation_failed = 34,
ZSTD_error_parameter_unsupported = 40,
ZSTD_error_parameter_combination_unsupported = 41,
ZSTD_error_parameter_outOfBound = 42,
ZSTD_error_tableLog_tooLarge = 44,
ZSTD_error_maxSymbolValue_tooLarge = 46,
ZSTD_error_maxSymbolValue_tooSmall = 48,
ZSTD_error_stabilityCondition_notRespected = 50,
ZSTD_error_stage_wrong = 60,
ZSTD_error_init_missing = 62,
ZSTD_error_memory_allocation = 64,
ZSTD_error_workSpace_tooSmall = 66,
ZSTD_error_dstSize_tooSmall = 70,
ZSTD_error_srcSize_wrong = 72,
ZSTD_error_dstBuffer_null = 74,
ZSTD_error_noForwardProgress_destFull = 80,
ZSTD_error_noForwardProgress_inputEmpty = 82,
ZSTD_error_frameIndex_tooLarge = 100,
ZSTD_error_seekableIO = 102,
ZSTD_error_dstBuffer_wrong = 104,
ZSTD_error_srcBuffer_wrong = 105,
ZSTD_error_sequenceProducer_failed = 106,
ZSTD_error_externalSequences_invalid = 107;
protected ZstdErrors() {
throw new UnsupportedOperationException();
}
// --- [ ZSTD_getErrorCode ] ---
@NativeType("ZSTD_ErrorCode")
public static native int ZSTD_getErrorCode(@NativeType("size_t") long functionResult);
// --- [ ZSTD_getErrorString ] ---
public static native long nZSTD_getErrorString(int code);
@NativeType("char const *")
public static String ZSTD_getErrorString(@NativeType("ZSTD_ErrorCode") int code) {
long __result = nZSTD_getErrorString(code);
return memASCII(__result);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy