JitMemoryAllocator.cs 372 B

1234567891011
  1. using ARMeilleure.Memory;
  2. using Ryujinx.Memory;
  3. namespace Ryujinx.Cpu.Jit
  4. {
  5. public class JitMemoryAllocator : IJitMemoryAllocator
  6. {
  7. public IJitMemoryBlock Allocate(ulong size) => new JitMemoryBlock(size, MemoryAllocationFlags.None);
  8. public IJitMemoryBlock Reserve(ulong size) => new JitMemoryBlock(size, MemoryAllocationFlags.Reserve);
  9. }
  10. }