Skip to content

Commit

Permalink
Use in keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
brantburnett committed Nov 30, 2023
1 parent 4a40b68 commit 7285d1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Snappier/Internal/CopyHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,14 @@ public static void IncrementalCopySlow(ref byte source, ref byte op, ref byte op
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void UnalignedCopy64(in byte source, ref byte destination)
{
long tempStackVar = Unsafe.As<byte, long>(ref Unsafe.AsRef(source));
long tempStackVar = Unsafe.As<byte, long>(ref Unsafe.AsRef(in source));
Unsafe.As<byte, long>(ref destination) = tempStackVar;
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void UnalignedCopy128(in byte source, ref byte destination)
{
Guid tempStackVar = Unsafe.As<byte, Guid>(ref Unsafe.AsRef(source));
Guid tempStackVar = Unsafe.As<byte, Guid>(ref Unsafe.AsRef(in source));
Unsafe.As<byte, Guid>(ref destination) = tempStackVar;
}
}
Expand Down

0 comments on commit 7285d1a

Please sign in to comment.