@@ -1594,7 +1594,7 @@ pub unsafe extern "C" fn ZSTD_compressBound(srcSize: size_t) -> size_t {
15941594}
15951595#[ cfg_attr( feature = "export-symbols" , export_name = crate :: prefix!( ZSTD_createCCtx ) ) ]
15961596pub unsafe extern "C" fn ZSTD_createCCtx ( ) -> * mut ZSTD_CCtx {
1597- ZSTD_createCCtx_advanced ( ZSTD_defaultCMem )
1597+ ZSTD_createCCtx_advanced ( ZSTD_customMem :: default ( ) )
15981598}
15991599unsafe fn ZSTD_initCCtx ( cctx : * mut ZSTD_CCtx , memManager : ZSTD_customMem ) {
16001600 ptr:: write_bytes ( cctx as * mut u8 , 0 , :: core:: mem:: size_of :: < ZSTD_CCtx > ( ) ) ;
@@ -1958,7 +1958,7 @@ unsafe fn ZSTD_createCCtxParams_advanced(customMem: ZSTD_customMem) -> *mut ZSTD
19581958}
19591959#[ cfg_attr( feature = "export-symbols" , export_name = crate :: prefix!( ZSTD_createCCtxParams ) ) ]
19601960pub unsafe extern "C" fn ZSTD_createCCtxParams ( ) -> * mut ZSTD_CCtx_params {
1961- ZSTD_createCCtxParams_advanced ( ZSTD_defaultCMem )
1961+ ZSTD_createCCtxParams_advanced ( ZSTD_customMem :: default ( ) )
19621962}
19631963#[ cfg_attr( feature = "export-symbols" , export_name = crate :: prefix!( ZSTD_freeCCtxParams ) ) ]
19641964pub unsafe extern "C" fn ZSTD_freeCCtxParams ( params : * mut ZSTD_CCtx_params ) -> size_t {
@@ -5554,7 +5554,7 @@ pub unsafe extern "C" fn ZSTD_generateSequences(
55545554 if nbWorkers != 0 {
55555555 return Error :: parameter_unsupported. to_error_code ( ) ;
55565556 }
5557- dst = ZSTD_customMalloc ( dstCapacity, ZSTD_defaultCMem ) ;
5557+ dst = ZSTD_customMalloc ( dstCapacity, ZSTD_customMem :: default ( ) ) ;
55585558 if dst. is_null ( ) {
55595559 return Error :: memory_allocation. to_error_code ( ) ;
55605560 }
@@ -5564,7 +5564,7 @@ pub unsafe extern "C" fn ZSTD_generateSequences(
55645564 seqCollector. maxSequences = outSeqsSize;
55655565 ( * zc) . seqCollector = seqCollector;
55665566 let ret = ZSTD_compress2 ( zc, dst, dstCapacity, src, srcSize) ;
5567- ZSTD_customFree ( dst, ZSTD_defaultCMem ) ;
5567+ ZSTD_customFree ( dst, ZSTD_customMem :: default ( ) ) ;
55685568 let err_code_1 = ret;
55695569 if ERR_isError ( err_code_1) {
55705570 return err_code_1;
@@ -8487,7 +8487,7 @@ pub unsafe extern "C" fn ZSTD_compress(
84878487 extSeqBuf : core:: ptr:: null_mut :: < ZSTD_Sequence > ( ) ,
84888488 extSeqBufCapacity : 0 ,
84898489 } ;
8490- ZSTD_initCCtx ( & mut ctxBody, ZSTD_defaultCMem ) ;
8490+ ZSTD_initCCtx ( & mut ctxBody, ZSTD_customMem :: default ( ) ) ;
84918491 result = ZSTD_compressCCtx (
84928492 & mut ctxBody,
84938493 dst,
@@ -8830,7 +8830,7 @@ pub unsafe extern "C" fn ZSTD_createCDict(
88308830 ZSTD_dlm_byCopy ,
88318831 ZSTD_dct_auto ,
88328832 cParams,
8833- ZSTD_defaultCMem ,
8833+ ZSTD_customMem :: default ( ) ,
88348834 ) ;
88358835 if !cdict. is_null ( ) {
88368836 ( * cdict) . compressionLevel = if compressionLevel == 0 {
@@ -8859,7 +8859,7 @@ pub unsafe extern "C" fn ZSTD_createCDict_byReference(
88598859 ZSTD_dlm_byRef ,
88608860 ZSTD_dct_auto ,
88618861 cParams,
8862- ZSTD_defaultCMem ,
8862+ ZSTD_customMem :: default ( ) ,
88638863 ) ;
88648864 if !cdict. is_null ( ) {
88658865 ( * cdict) . compressionLevel = if compressionLevel == 0 {
@@ -9225,7 +9225,7 @@ pub unsafe extern "C" fn ZSTD_compress_usingCDict(
92259225}
92269226#[ cfg_attr( feature = "export-symbols" , export_name = crate :: prefix!( ZSTD_createCStream ) ) ]
92279227pub unsafe extern "C" fn ZSTD_createCStream ( ) -> * mut ZSTD_CStream {
9228- ZSTD_createCStream_advanced ( ZSTD_defaultCMem )
9228+ ZSTD_createCStream_advanced ( ZSTD_customMem :: default ( ) )
92299229}
92309230#[ cfg_attr( feature = "export-symbols" , export_name = crate :: prefix!( ZSTD_initStaticCStream ) ) ]
92319231pub unsafe extern "C" fn ZSTD_initStaticCStream (
0 commit comments