Skip to content

Commit

Permalink
Fixed buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
sakno committed Dec 4, 2024
1 parent fea5ce0 commit 7545283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DotNext.Tests/Buffers/SpanReaderWriterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ public static void EncodeString(LengthFormat format)
public static void WriteLengthPrefixedBytes(LengthFormat format)
{
ReadOnlySpan<byte> expected = [1, 2, 3];
var buffer = new byte[expected.Length];
var buffer = new byte[expected.Length + 5];

var writer = new SpanWriter<byte>(buffer);
True(writer.Write(expected, format) > 0);
Expand Down

0 comments on commit 7545283

Please sign in to comment.