WopsS / RED4ext.SDK

A library to create mods for REDengine 4 (Cyberpunk 2077), independently of RED4ext.
MIT License
100 stars 33 forks source link

TweakDB, DynArray and HashMap #29

Closed 0xSombra closed 3 years ago

0xSombra commented 3 years ago

added 'reserve/insert/remove/clear' functions to HashMap added 'emplace/remove/clear' functions to DynArray added 'RemoveAt/InsertAt' functions to CArrayBase RTTI added 'Move' function to IRTTIType added '[Create/Remove]Record' and '[Add/Remove]Flat' to TweakDB added != operator to TweakDBID (fixes a bug where it would implicitly cast into u64) fixed rare race condition in TweakDB::CreateFlatValue by delaying freeing the buffer (buffer can't go over 0xFFFFFF, won't use a lot of memory)

DynArray/HashMap functions were tested and are working HashMap Insert/Remove were tested with hash-collisioned keys

WopsS commented 3 years ago

Thanks!