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