improved data pack type checking

added readmemory member

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40494
This commit is contained in:
Borja Ferrer
2007-02-14 11:03:03 +00:00
parent bb79b1e6a9
commit 8f9a0706bf
4 changed files with 75 additions and 14 deletions
+8
View File
@@ -92,6 +92,14 @@ namespace SourceMod
* @return Pointer to the memory.
*/
virtual void *GetMemory() const =0;
/**
* @brief Reads the current position as a generic data type.
*
* @param size Optional pointer to store the size of the data type.
* @return Pointer to the data, or NULL if out of bounds.
*/
virtual void *ReadMemory(size_t *size) const =0;
};
/**