|
| Enumerator (CPTrie< TValue > trie) |
|
bool | Find (ref KeyWalker key, CPEnumerator< T > e) |
|
bool | Find (ref KeyWalker key, ref T value) |
| Retrieves the value associated with the specified key; does nothing if the key does not exist. More...
|
|
bool | ContainsKey (ref KeyWalker key) |
|
bool | Set (ref KeyWalker key, ref T value, CPMode mode) |
| Associates the specified value with the specified key. More...
|
|
bool | Remove (ref KeyWalker key, ref T value) |
| Removes the specified key and associated value. More...
|
|
bool | Remove (ref KeyWalker key) |
|
void | Clear () |
|
int | CountMemoryUsage (int sizeOfT) |
| Calculates the memory usage of this object, assuming a 32-bit architecture. More...
|
|
|
TValue this[byte[] | key |
| Finds the specified key and returns its associated value. If the key did not exist, TryGetValue returns defaultValue instead. More...
|
|
| CPByteTrie (CPTrie< TValue > clone) |
|
new int | CountMemoryUsage (int sizeOfT) |
|
void | Add (byte[] key, TValue value) |
| Adds the specified key-value pair to the trie, throwing an exception if the key is already present. More...
|
|
void | Add (byte[] key, int offset, int length, TValue value) |
| Adds the specified key-value pair to the trie, throwing an exception if the key is already present. More...
|
|
bool | TryAdd (byte[] key, TValue value) |
| Adds the specified key-value pair only if the specified key is not already present in the trie. More...
|
|
bool | TryAdd (byte[] key, int offset, int length, TValue value) |
|
bool | TryAdd (byte[] key, int offset, int length, ref TValue value) |
| Adds the specified key-value pair only if the specified key is not already present in the trie. More...
|
|
bool | ContainsKey (byte[] key) |
| Searches for the specified key, returning true if it is present in the trie. More...
|
|
bool | ContainsKey (byte[] key, int offset, int length) |
| Searches for the specified key, returning true if it is present in the trie. More...
|
|
bool | Remove (byte[] key) |
| Removes the specified key and associated value, returning true if the entry was found and removed. More...
|
|
bool | Remove (byte[] key, int offset, int length) |
|
bool | Remove (byte[] key, int offset, int length, ref TValue oldValue) |
| Removes the specified key and associated value, returning true if the entry was found and removed. More...
|
|
bool | TryGetValue (byte[] key, out TValue value) |
| Finds the specified key and gets its associated value, returning true if the key was found. More...
|
|
bool | TryGetValue (byte[] key, int offset, int length, out TValue value) |
|
void | Add (KeyValuePair< byte[], TValue > item) |
|
new void | Clear () |
|
bool | Contains (KeyValuePair< byte[], TValue > item) |
|
void | CopyTo (KeyValuePair< byte[], TValue >[] array, int arrayIndex) |
|
bool | Remove (KeyValuePair< byte[], TValue > item) |
|
Enumerator | GetEnumerator () |
|
Enumerator | FindAtLeast (byte[] key) |
|
Enumerator | FindExact (byte[] key) |
|
bool | Find (byte[] key, out Enumerator e) |
|
bool | Find (byte[] key, int offset, int length, out Enumerator e) |
|
CPByteTrie< TValue > | Clone () |
|
| CPTrie (CPTrie< T > copy) |
|
static StringBuilder | BytesToStringBuilder (byte[] key, int keyLength) |
|
static Comparer< T > | DefaultComparer = Comparer<T>.Default |
|