[System] Use GZipStream from corefx
[mono-project.git] / mono / utils / mono-property-hash.h
blob0b24c7fbcd973ab42a1ca276418963bf0681a293
1 /*
2 * mono-property-hash.h: Hash table for (object, property) pairs
4 * Author:
5 * Zoltan Varga (vargaz@gmail.com)
7 * (C) 2008 Novell, Inc
8 */
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
14 * pointers.
17 #ifndef _MONO_PROPERTY_HASH_H_
18 #define _MONO_PROPERTY_HASH_H_
20 #include <glib.h>
21 #include <mono/utils/mono-publib.h>
23 G_BEGIN_DECLS
25 typedef struct _MonoPropertyHash MonoPropertyHash;
27 MONO_API MonoPropertyHash* mono_property_hash_new (void);
29 MONO_API void mono_property_hash_destroy (MonoPropertyHash *hash);
31 MONO_API void mono_property_hash_insert (MonoPropertyHash *hash, gpointer object, guint32 property,
32 gpointer value);
34 /* Remove all properties of OBJECT */
35 MONO_API void mono_property_hash_remove_object (MonoPropertyHash *hash, gpointer object);
37 MONO_API gpointer mono_property_hash_lookup (MonoPropertyHash *hash, gpointer object, guint32 property);
39 G_END_DECLS
41 #endif