+
+// ----------------------------------------------------------------------------
+
+void WXSERIAL(wxHashTable)::StoreObject(wxObjectOutputStream& s)
+{
+ wxHashTable *table = (wxHashTable *)Object();
+ int i;
+
+ if (s.FirstStage()) {
+ for (i=0;i<table->n;i++)
+ s.AddChild(table->hash_table[i]);
+ return;
+ }
+
+ wxDataOutputStream data_s(s);
+
+ data_s.Write8(table->key_type);
+ data_s.Write32(table->n);
+}
+
+void WXSERIAL(wxHashTable)::LoadObject(wxObjectInputStream& s)
+{
+ wxHashTable *table = (wxHashTable *)Object();
+ wxDataInputStream data_s(s);
+ int i, key, n;
+
+ key = data_s.Read8();
+ n = data_s.Read32();
+
+ table->Create(key, n);
+
+ for (i=0;i<n;i++)
+ table->hash_table[i] = (wxList *)s.GetChild();
+}