Skip to content

Commit 2fb8778

Browse files
committed
advanceto the consumed data which need to include the delimiter
1 parent b0c6157 commit 2fb8778

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/OpenAPI.WebApiGenerator/CodeGeneration/SequentialJsonEnumeratorGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public async ValueTask<bool> MoveNextAsync()
6767
var data = buffer.Slice(0, position.Value);
6868
_itemPosition++;
6969
Current = ParseItem(data);
70-
PipeReader.AdvanceTo(position.Value);
70+
PipeReader.AdvanceTo(buffer.GetPosition(1, position.Value));
7171
return true;
7272
}
7373

0 commit comments

Comments
 (0)