Skip to content
Merged
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
11 changes: 2 additions & 9 deletions src/PbfLite/PbfBlockWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,7 @@ public LengthPrefixedBlock StartLengthPrefixedBlock(int estimatedBlockLength)
var contentPosition = lengthPosition + GetVarIntBytesCount((uint)estimatedBlockLength);
_position = contentPosition;

return new LengthPrefixedBlock
{
LengthPosition = lengthPosition,
ContentPosition = contentPosition
};
return new LengthPrefixedBlock(lengthPosition, contentPosition);
}

/// <summary>
Expand Down Expand Up @@ -195,7 +191,4 @@ public void FinalizeLengthPrefixedBlock(LengthPrefixedBlock block)
}
}

public record struct LengthPrefixedBlock {
public int LengthPosition;
public int ContentPosition;
}
public record struct LengthPrefixedBlock(int LengthPosition, int ContentPosition);