aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Audio/Renderer/Common/WorkBufferAllocator.cs
diff options
context:
space:
mode:
authorMary-nyan <mary@mary.zone>2022-07-25 20:46:33 +0200
committerGitHub <noreply@github.com>2022-07-25 15:46:33 -0300
commit1825bd87b4f0709ab79ed407f6c267ba3545456e (patch)
tree3309fa4aea0cb8d17715a3ee5f5e04acd376681f /Ryujinx.Audio/Renderer/Common/WorkBufferAllocator.cs
parent62f8ceb60b969db65a24d312dde7c6513a07ec46 (diff)
misc: Reformat Ryujinx.Audio with dotnet-format (#3485)1.1.192
This is the first commit of a series of reformat around the codebase as discussed internally some weeks ago. This project being one that isn't touched that much, it shouldn't cause conflict with any opened PRs.
Diffstat (limited to 'Ryujinx.Audio/Renderer/Common/WorkBufferAllocator.cs')
-rw-r--r--Ryujinx.Audio/Renderer/Common/WorkBufferAllocator.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Ryujinx.Audio/Renderer/Common/WorkBufferAllocator.cs b/Ryujinx.Audio/Renderer/Common/WorkBufferAllocator.cs
index e1b4e352..922ce4e3 100644
--- a/Ryujinx.Audio/Renderer/Common/WorkBufferAllocator.cs
+++ b/Ryujinx.Audio/Renderer/Common/WorkBufferAllocator.cs
@@ -41,7 +41,7 @@ namespace Ryujinx.Audio.Renderer.Common
return Memory<byte>.Empty;
}
- public Memory<T> Allocate<T>(ulong count, int align) where T: unmanaged
+ public Memory<T> Allocate<T>(ulong count, int align) where T : unmanaged
{
Memory<byte> allocatedMemory = Allocate((ulong)Unsafe.SizeOf<T>() * count, align);
@@ -53,9 +53,9 @@ namespace Ryujinx.Audio.Renderer.Common
return SpanMemoryManager<T>.Cast(allocatedMemory);
}
- public static ulong GetTargetSize<T>(ulong currentSize, ulong count, int align) where T: unmanaged
+ public static ulong GetTargetSize<T>(ulong currentSize, ulong count, int align) where T : unmanaged
{
return BitUtils.AlignUp(currentSize, align) + (ulong)Unsafe.SizeOf<T>() * count;
}
}
-}
+} \ No newline at end of file