Class HashTable
- Namespace
- GLib
- Assembly
- GLib-2.0.dll
public sealed class HashTable : BoxedRecord, IEquatable<HashTable>
- Inheritance
-
HashTable
- Implements
- Inherited Members
Constructors
HashTable(HashTableOwnedHandle)
public HashTable(HashTableOwnedHandle handle)
Parameters
handle
HashTableOwnedHandle
Properties
Handle
public HashTableOwnedHandle Handle { get; }
Property Value
Methods
Add(HashTable, IntPtr)
[Version("2.32")]
public static bool Add(HashTable hashTable, IntPtr key)
Parameters
Returns
Contains(HashTable, IntPtr)
[Version("2.32")]
public static bool Contains(HashTable hashTable, IntPtr key)
Parameters
Returns
Destroy(HashTable)
public static void Destroy(HashTable hashTable)
Parameters
hashTable
HashTable
Equals(HashTable?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(HashTable? other)
Parameters
other
HashTableAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Find(HashTable, HRFunc)
[Version("2.4")]
public static IntPtr Find(HashTable hashTable, HRFunc predicate)
Parameters
Returns
Foreach(HashTable, HFunc)
public static void Foreach(HashTable hashTable, HFunc func)
Parameters
ForeachRemove(HashTable, HRFunc)
public static uint ForeachRemove(HashTable hashTable, HRFunc func)
Parameters
Returns
ForeachSteal(HashTable, HRFunc)
public static uint ForeachSteal(HashTable hashTable, HRFunc func)
Parameters
Returns
GetGType()
public static Type GetGType()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Insert(HashTable, IntPtr, IntPtr)
public static bool Insert(HashTable hashTable, IntPtr key, IntPtr value)
Parameters
Returns
Lookup(HashTable, IntPtr)
public static IntPtr Lookup(HashTable hashTable, IntPtr key)
Parameters
Returns
LookupExtended(HashTable, IntPtr, out IntPtr, out IntPtr)
public static bool LookupExtended(HashTable hashTable, IntPtr lookupKey, out IntPtr origKey, out IntPtr value)
Parameters
Returns
NewSimilar(HashTable)
[Version("2.72")]
public static HashTable NewSimilar(HashTable otherHashTable)
Parameters
otherHashTable
HashTable
Returns
Ref(HashTable)
[Version("2.10")]
public static HashTable Ref(HashTable hashTable)
Parameters
hashTable
HashTable
Returns
Remove(HashTable, IntPtr)
public static bool Remove(HashTable hashTable, IntPtr key)
Parameters
Returns
RemoveAll(HashTable)
[Version("2.12")]
public static void RemoveAll(HashTable hashTable)
Parameters
hashTable
HashTable
Replace(HashTable, IntPtr, IntPtr)
public static bool Replace(HashTable hashTable, IntPtr key, IntPtr value)
Parameters
Returns
Size(HashTable)
public static uint Size(HashTable hashTable)
Parameters
hashTable
HashTable
Returns
Steal(HashTable, IntPtr)
public static bool Steal(HashTable hashTable, IntPtr key)
Parameters
Returns
StealAll(HashTable)
[Version("2.12")]
public static void StealAll(HashTable hashTable)
Parameters
hashTable
HashTable
StealExtended(HashTable, IntPtr, out IntPtr, out IntPtr)
[Version("2.58")]
public static bool StealExtended(HashTable hashTable, IntPtr lookupKey, out IntPtr stolenKey, out IntPtr stolenValue)
Parameters
Returns
Unref(HashTable)
[Version("2.10")]
public static void Unref(HashTable hashTable)
Parameters
hashTable
HashTable