2 * mono-property-hash.h: Hash table for (object, property) pairs
5 * Zoltan Varga (vargaz@gmail.com)
11 * This is similar to the GLib hash table, but stores (object, property) pairs. It can
12 * be used to store rarely used fields of runtime structures, decreasing memory usage.
13 * The memory required to store one property is the size of one hash node, about 3
17 #ifndef _MONO_PROPERTY_HASH_H_
18 #define _MONO_PROPERTY_HASH_H_
24 typedef struct _MonoPropertyHash MonoPropertyHash;
26 MonoPropertyHash* mono_property_hash_new (void);
28 void mono_property_hash_destroy (MonoPropertyHash *hash);
30 void mono_property_hash_insert (MonoPropertyHash *hash, gpointer object, guint32 property,
33 /* Remove all properties of OBJECT */
34 void mono_property_hash_remove_object (MonoPropertyHash *hash, gpointer object);
36 gpointer mono_property_hash_lookup (MonoPropertyHash *hash, gpointer object, guint32 property);