mirror of
https://git.ryujinx.app/kenji-nx/ryujinx.git
synced 2025-12-14 07:37:04 +00:00
22 lines
490 B
C#
22 lines
490 B
C#
using System;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
|
namespace Ryujinx.Cpu.LightningJit.Cache
|
|
{
|
|
readonly struct CacheEntry : IComparable<CacheEntry>
|
|
{
|
|
public int Offset { get; }
|
|
public int Size { get; }
|
|
|
|
public CacheEntry(int offset, int size)
|
|
{
|
|
Offset = offset;
|
|
Size = size;
|
|
}
|
|
|
|
public int CompareTo([AllowNull] CacheEntry other)
|
|
{
|
|
return Offset.CompareTo(other.Offset);
|
|
}
|
|
}
|
|
}
|