Table of Contents

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

HashTableOwnedHandle

Methods

Add(HashTable, IntPtr)

[Version("2.32")]
public static bool Add(HashTable hashTable, IntPtr key)

Parameters

hashTable HashTable
key IntPtr

Returns

bool

Contains(HashTable, IntPtr)

[Version("2.32")]
public static bool Contains(HashTable hashTable, IntPtr key)

Parameters

hashTable HashTable
key IntPtr

Returns

bool

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 HashTable

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Find(HashTable, HRFunc)

[Version("2.4")]
public static IntPtr Find(HashTable hashTable, HRFunc predicate)

Parameters

hashTable HashTable
predicate HRFunc

Returns

IntPtr

Foreach(HashTable, HFunc)

public static void Foreach(HashTable hashTable, HFunc func)

Parameters

hashTable HashTable
func HFunc

ForeachRemove(HashTable, HRFunc)

public static uint ForeachRemove(HashTable hashTable, HRFunc func)

Parameters

hashTable HashTable
func HRFunc

Returns

uint

ForeachSteal(HashTable, HRFunc)

public static uint ForeachSteal(HashTable hashTable, HRFunc func)

Parameters

hashTable HashTable
func HRFunc

Returns

uint

GetGType()

public static Type GetGType()

Returns

Type

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

hashTable HashTable
key IntPtr
value IntPtr

Returns

bool

Lookup(HashTable, IntPtr)

public static IntPtr Lookup(HashTable hashTable, IntPtr key)

Parameters

hashTable HashTable
key IntPtr

Returns

IntPtr

LookupExtended(HashTable, IntPtr, out IntPtr, out IntPtr)

public static bool LookupExtended(HashTable hashTable, IntPtr lookupKey, out IntPtr origKey, out IntPtr value)

Parameters

hashTable HashTable
lookupKey IntPtr
origKey IntPtr
value IntPtr

Returns

bool

NewSimilar(HashTable)

[Version("2.72")]
public static HashTable NewSimilar(HashTable otherHashTable)

Parameters

otherHashTable HashTable

Returns

HashTable

Ref(HashTable)

[Version("2.10")]
public static HashTable Ref(HashTable hashTable)

Parameters

hashTable HashTable

Returns

HashTable

Remove(HashTable, IntPtr)

public static bool Remove(HashTable hashTable, IntPtr key)

Parameters

hashTable HashTable
key IntPtr

Returns

bool

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

hashTable HashTable
key IntPtr
value IntPtr

Returns

bool

Size(HashTable)

public static uint Size(HashTable hashTable)

Parameters

hashTable HashTable

Returns

uint

Steal(HashTable, IntPtr)

public static bool Steal(HashTable hashTable, IntPtr key)

Parameters

hashTable HashTable
key IntPtr

Returns

bool

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

hashTable HashTable
lookupKey IntPtr
stolenKey IntPtr
stolenValue IntPtr

Returns

bool

Unref(HashTable)

[Version("2.10")]
public static void Unref(HashTable hashTable)

Parameters

hashTable HashTable