Update BlitzUtility:
- New DECLS - Begin wrapping __cdecl sqlite3 into __stdcall functions (sqlite3 doesn't understand __stdcall) - Use __stdcall and /EXPORT instead of __cdecl to not corrupt the stack. - Implement two versions of the Indexer, V1 for really fast access and V2 for memory saving. Signed-off-by: Michael Fabian Dirks <michael.dirks@realitybends.de>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
#include "dllmain.h"
|
||||
#include <vector>
|
||||
|
||||
class IndexerV2 {
|
||||
public:
|
||||
IndexerV2();
|
||||
~IndexerV2();
|
||||
|
||||
uint32_t GetIndex();
|
||||
void MarkIndex(uint32_t index);
|
||||
|
||||
bool IsFree(uint32_t index);
|
||||
bool IsUsed(uint32_t index);
|
||||
private:
|
||||
struct IndexerV2Range {
|
||||
uint32_t min, max;
|
||||
|
||||
IndexerV2Range(uint32_t pmin, uint32_t pmax);
|
||||
};
|
||||
|
||||
std::vector<IndexerV2Range> range;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user