File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -401,6 +401,7 @@ unsafe fn FASTCOVER_buildDictionary(
401401 }
402402 tail
403403}
404+
404405unsafe fn FASTCOVER_tryParameters ( opaque : * mut core:: ffi:: c_void ) {
405406 let data = opaque as * mut FASTCOVER_tryParameters_data_t ;
406407 let ctx = ( * data) . ctx ;
Original file line number Diff line number Diff line change @@ -1301,14 +1301,11 @@ pub unsafe extern "C" fn ZDICT_finalizeDictionary(
13011301 outDictContent,
13021302 dictContentSize,
13031303 ) ;
1304- memcpy (
1305- outDictHeader as * mut core:: ffi:: c_void ,
1306- header. as_mut_ptr ( ) as * const core:: ffi:: c_void ,
1307- hSize,
1308- ) ;
1304+ core:: ptr:: copy_nonoverlapping ( header. as_mut_ptr ( ) , outDictHeader, hSize) ;
13091305 core:: ptr:: write_bytes ( outDictPadding, 0 , paddingSize) ;
13101306 dictSize
13111307}
1308+
13121309const HBUFFSIZE : core:: ffi:: c_int = 256 ;
13131310unsafe fn ZDICT_addEntropyTablesFromBuffer_advanced (
13141311 dictBuffer : * mut core:: ffi:: c_void ,
You can’t perform that action at this time.
0 commit comments