mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-30 20:27:10 +02:00
avoid allocations when doing address space lookup
This commit is contained in:
parent
f16abe6dac
commit
10ee46744b
5 changed files with 145 additions and 29 deletions
|
@ -5,10 +5,10 @@ namespace Ryujinx.Common.Collections
|
|||
/// </summary>
|
||||
public class IntrusiveRedBlackTreeNode<T> where T : IntrusiveRedBlackTreeNode<T>
|
||||
{
|
||||
internal bool Color = true;
|
||||
internal T Left;
|
||||
internal T Right;
|
||||
internal T Parent;
|
||||
public bool Color = true;
|
||||
public T Left;
|
||||
public T Right;
|
||||
public T Parent;
|
||||
|
||||
public T Predecessor => IntrusiveRedBlackTreeImpl<T>.PredecessorOf((T)this);
|
||||
public T Successor => IntrusiveRedBlackTreeImpl<T>.SuccessorOf((T)this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue