Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Utf8JsonStreamReader/Utf8JsonStreamReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ private long DeserialisePre(out SequenceSegment? firstSegment, out int firstSegm
firstSegment = _firstSegment;
firstSegmentStartIndex = _firstSegmentStartIndex;

if (firstSegment is null && this.Read()) {
return DeserialisePre(out firstSegment, out firstSegmentStartIndex);
}

// loop through data until end of object is found
_keepBuffers = true;
int depth = 0;
Expand Down