diff options
Diffstat (limited to 'src/Ryujinx.Graphics.GAL/PinnedSpan.cs')
-rw-r--r-- | src/Ryujinx.Graphics.GAL/PinnedSpan.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Ryujinx.Graphics.GAL/PinnedSpan.cs b/src/Ryujinx.Graphics.GAL/PinnedSpan.cs index 275b3b86..d028f07c 100644 --- a/src/Ryujinx.Graphics.GAL/PinnedSpan.cs +++ b/src/Ryujinx.Graphics.GAL/PinnedSpan.cs @@ -4,11 +4,11 @@ using System.Runtime.InteropServices; namespace Ryujinx.Graphics.GAL { - public unsafe struct PinnedSpan<T> : IDisposable where T : unmanaged + public readonly unsafe struct PinnedSpan<T> : IDisposable where T : unmanaged { - private void* _ptr; - private int _size; - private Action _disposeAction; + private readonly void* _ptr; + private readonly int _size; + private readonly Action _disposeAction; /// <summary> /// Creates a new PinnedSpan from an existing ReadOnlySpan. The span *must* be pinned in memory. |