Use size types for keyvaluesystem interface

This commit is contained in:
Kawe Mazidjatari 2023-12-20 21:14:18 +01:00
parent d76f3a712b
commit 4c04d76ceb

View File

@ -26,10 +26,10 @@ public:
// registers the size of the KeyValues in the specified instance // registers the size of the KeyValues in the specified instance
// so it can build a properly sized memory pool for the KeyValues objects // so it can build a properly sized memory pool for the KeyValues objects
// the sizes will usually never differ but this is for versioning safety // the sizes will usually never differ but this is for versioning safety
virtual void RegisterSizeofKeyValues( int64 nSize ) = 0; virtual void RegisterSizeofKeyValues( ssize_t nSize ) = 0;
// allocates/frees a KeyValues object from the shared mempool // allocates/frees a KeyValues object from the shared mempool
virtual void *AllocKeyValuesMemory( int64 nSize ) = 0; virtual void *AllocKeyValuesMemory( ssize_t nSize ) = 0;
virtual void FreeKeyValuesMemory( void *pMem ) = 0; virtual void FreeKeyValuesMemory( void *pMem ) = 0;
// symbol table access (used for key names) // symbol table access (used for key names)