Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
neuecc committed Sep 28, 2022
1 parent bc219a1 commit c5d4f7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MemoryPack.Core/MemoryPackWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public void WriteString(string? value)
ref var dest = ref GetSpanReference(copyByteCount + 4);
Unsafe.WriteUnaligned(ref dest, value.Length);

if(copyByteCount > 0)
if (copyByteCount > 0)
{
ref var src = ref Unsafe.As<char, byte>(ref Unsafe.AsRef(value.GetPinnableReference()));
Unsafe.CopyBlockUnaligned(ref Unsafe.Add(ref dest, 4), ref src, (uint)copyByteCount);
Expand Down

0 comments on commit c5d4f7e

Please sign in to comment.