コード例 #1
0
ファイル: ReservedRegion.cs プロジェクト: ski982/Ryujinx-1
        public ReservedRegion(IJitMemoryAllocator allocator, ulong maxSize, ulong granularity = 0)
        {
            if (granularity == 0)
            {
                granularity = DefaultGranularity;
            }

            Block            = allocator.Reserve(maxSize);
            _maxSize         = maxSize;
            _sizeGranularity = granularity;
            _currentSize     = 0;
        }
コード例 #2
0
        public NativeContext(IJitMemoryAllocator allocator)
        {
            _block = allocator.Allocate((ulong)Unsafe.SizeOf <NativeCtxStorage>());

            GetStorage().ExclusiveAddress = ulong.MaxValue;
        }
コード例 #3
0
 public NativeContext(IJitMemoryAllocator allocator)
 {
     _block = allocator.Allocate(TotalSize);
 }
コード例 #4
0
ファイル: NativeContext.cs プロジェクト: sgnls/Ryujinx
 public NativeContext(IJitMemoryAllocator allocator)
 {
     _block = allocator.Allocate((ulong)Unsafe.SizeOf <NativeCtxStorage>());
 }