diff --git a/src/MemoryPack.Core/MemoryPackWriter.cs b/src/MemoryPack.Core/MemoryPackWriter.cs index ed2620bd..4316af49 100644 --- a/src/MemoryPack.Core/MemoryPackWriter.cs +++ b/src/MemoryPack.Core/MemoryPackWriter.cs @@ -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(ref Unsafe.AsRef(value.GetPinnableReference())); Unsafe.CopyBlockUnaligned(ref Unsafe.Add(ref dest, 4), ref src, (uint)copyByteCount);