Remove BS comments
This commit was merged in pull request #1.
This commit is contained in:
@@ -9,7 +9,7 @@ namespace ReFuel.Gltf.IO
|
||||
// Shared across forks so that concurrent access to the same base stream is serialized.
|
||||
private readonly object _sync;
|
||||
|
||||
// Logical position relative to Head. This is the fix for the "Position lies" problem.
|
||||
// Logical position relative to Head.
|
||||
private long _position;
|
||||
|
||||
public long Head { get; private init; }
|
||||
@@ -188,7 +188,6 @@ namespace ReFuel.Gltf.IO
|
||||
break;
|
||||
|
||||
case SeekOrigin.End:
|
||||
// End of our window, not necessarily end of the underlying stream.
|
||||
long windowEndRel = Tail >= 0
|
||||
? Tail - Head
|
||||
: _baseStream.Length - Head;
|
||||
@@ -277,7 +276,6 @@ namespace ReFuel.Gltf.IO
|
||||
|
||||
_baseStream.SetLength(newEnd);
|
||||
|
||||
// Update our window end to match what we just did.
|
||||
Tail = Tail >= 0 ? Tail : -1;
|
||||
|
||||
if (_position > value)
|
||||
@@ -317,8 +315,6 @@ namespace ReFuel.Gltf.IO
|
||||
keepOpen, IsReadOnly || isReadOnly);
|
||||
}
|
||||
|
||||
// ---------- Helpers ----------
|
||||
|
||||
private static void ValidateBufferArgs(byte[] buffer, int offset, int count)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(buffer);
|
||||
|
||||
Reference in New Issue
Block a user