FixedSizeNodeTKey, TValueGetIndexOf Method

Searches for the index of the specified key within the node.

Definition

Namespace: SnapDB.Snap.Tree
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
protected override int GetIndexOf(
	TKey key
)

Parameters

key  TKey
The key to search for.

Return Value

Int32
The index of the specified key within the node, or a negative value if the key is not found.

Remarks

This method performs a binary search to find the index of the specified key within the node's keys. If the key is found, its index is returned; otherwise, a negative value is returned to indicate that the key is not present in the node.

See Also