This commit addresses several input validation issues in the ArmaRAMDb SQF functions and updates the compiled binaries.
* **Input Validation:** Modified several `fnc_` functions to correctly validate input data. Specifically, changed `isNil` checks to `count _data == 0` to ensure that empty arrays are treated as invalid input, improving the robustness of the functions. This affects `fnc_hashSetId.sqf`, `fnc_listSet.sqf`, `fnc_hashSet.sqf`, `fnc_listAdd.sqf`, `fnc_hashSetIdBulk.sqf`, and `fnc_hashSetBulk.sqf`.
* **Configuration File Path:** Fixed an issue in `Main.cs` where the configuration file path was not correctly constructed, ensuring the config file is loaded correctly.
* **Updated DLL/SO:** Updated the ArmaRAMDb_x64.dll and ArmaRAMDb_x64.so files.
This commit includes several changes to improve the performance and stability of ArmaRAMDb:
* **Increased Buffer Size:** Increased the buffer size in `Main.cs` to 10240 to handle larger data chunks.
* **Debug Logging:** Added `#ifdef __A3__DEBUG__` preprocessor directives to enable debug logging in various `.sqf` functions for easier troubleshooting.
* **Improved Chunking Logic:** Refactored the chunking logic in `Utils.cs` to correctly handle array data and improve efficiency.
* **ListStore Formatting:** Modified `ListStore.cs` to correctly format list values as JSON strings when retrieving or setting list elements.
* **Removed Unnecessary Code:** Removed unnecessary `_dataString` variable in `fnc_fetch.sqf`.
* **Updated DLL/SO:** Updated the ArmaRAMDb_x64.dll and ArmaRAMDb_x64.so files.
This commit introduces the ability to delete lists within the ArmaRAMDb extension. It also refactors the parameter handling in several sqf functions to improve consistency and remove unnecessary data structures.
Specifically, the following changes were made:
* **Extension (C#):**
* Added `ListDeleteAsync` to `ListStore.cs` to handle list deletion.
* Added a "listdel" case to `Main.cs` to call the new `HandleListDelOperation` function.
* Created `HandleListDelOperation` to call `ListStore.ListDeleteAsync`.
* Removed unused parameters from `HandleHDelOperation`.
* **SQF Functions:**
* Updated `fnc_hashSetIdBulk.sqf`, `fnc_hashSetBulk.sqf`, `fnc_hashSetId.sqf`, `fnc_listSet.sqf`, `fnc_hashSet.sqf`, `fnc_listAdd.sqf`, and `fnc_set.sqf` to use a simpler parameter structure. Specifically, the `_data` parameter is now expected to be a simple array instead of an array containing a default value.
* **XEH_PREP.hpp:**
* Added a few new functions to register.
* **Examples:**
* Updated examples in `fnc_hashSetIdBulk.sqf` and `fnc_hashSetBulk.sqf` to reflect the parameter changes.
This change enhances the functionality of ArmaRAMDb by providing a mechanism to remove lists and improves the overall code quality and consistency.