Lines Matching refs:state

937 /* state is presumed correctly initialized,
939 int LZ4_compress_HC_extStateHC_fastReset (void* state, const char* src, char* dst, int srcSize, int dstCapacity, int compressionLevel)
941 LZ4HC_CCtx_internal* const ctx = &((LZ4_streamHC_t*)state)->internal_donotuse;
942 if (!LZ4_isAligned(state, LZ4_streamHC_t_alignment())) return 0;
943 LZ4_resetStreamHC_fast((LZ4_streamHC_t*)state, compressionLevel);
951 int LZ4_compress_HC_extStateHC (void* state, const char* src, char* dst, int srcSize, int dstCapacity, int compressionLevel)
953 LZ4_streamHC_t* const ctx = LZ4_initStreamHC(state, sizeof(*ctx));
955 return LZ4_compress_HC_extStateHC_fastReset(state, src, dst, srcSize, dstCapacity, compressionLevel);
965 LZ4_streamHC_t state;
966 LZ4_streamHC_t* const statePtr = &state;
975 /* state is presumed sized correctly (>= sizeof(LZ4_streamHC_t)) */
976 int LZ4_compress_HC_destSize(void* state, const char* source, char* dest, int* sourceSizePtr, int targetDestSize, int cLevel)
978 LZ4_streamHC_t* const ctx = LZ4_initStreamHC(state, sizeof(*ctx));
994 LZ4_streamHC_t* const state =
996 if (state == NULL) return NULL;
997 LZ4_setCompressionLevel(state, LZ4HC_CLEVEL_DEFAULT);
998 return state;
1207 int LZ4_compressHC_withStateHC (void* state, const char* src, char* dst, int srcSize) { return LZ4_compress_HC_extStateHC (state, src, dst, srcSize, LZ4_compressBound(srcSize), 0); }
1208 int LZ4_compressHC_limitedOutput_withStateHC (void* state, const char* src, char* dst, int srcSize, int maxDstSize) { return LZ4_compress_HC_extStateHC (state, src, dst, srcSize, maxDstSize, 0); }
1209 int LZ4_compressHC2_withStateHC (void* state, const char* src, char* dst, int srcSize, int cLevel) { return LZ4_compress_HC_extStateHC(state, src, dst, srcSize, LZ4_compressBound(srcSize), cLevel); }
1210 int LZ4_compressHC2_limitedOutput_withStateHC (void* state, const char* src, char* dst, int srcSize, int maxDstSize, int cLevel) { return LZ4_compress_HC_extStateHC(state, src, dst, srcSize, maxDstSize, cLevel); }
1218 /* state is presumed correctly sized, aka >= sizeof(LZ4_streamHC_t)
1220 int LZ4_resetStreamStateHC(void* state, char* inputBuffer)
1222 LZ4_streamHC_t* const hc4 = LZ4_initStreamHC(state, sizeof(*hc4));