Skip to content

Commit 372eb36

Browse files
committed
Added StructLayout
1 parent 7eb5a42 commit 372eb36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/LinkDotNet.StringBuilder/ValueStringBuilder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ namespace LinkDotNet.StringBuilder;
1111
/// The <see cref="ValueStringBuilder"/> is declared as ref struct which brings certain limitations with it.
1212
/// You can only use it in another ref struct or as a local variable.
1313
/// </remarks>
14+
[StructLayout(LayoutKind.Auto)]
1415
public ref partial struct ValueStringBuilder
1516
{
1617
private int bufferPosition;

0 commit comments

Comments
 (0)