mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-11-28 17:47:12 +08:00
Merge pull request #52 from Numpsy/rw/streaminputbytes
Change StreamInputBytes.Seek to reset isAtEnd to false
This commit is contained in:
@@ -64,6 +64,12 @@
|
||||
|
||||
Assert.True(stream.IsAtEnd());
|
||||
Assert.True(array.IsAtEnd());
|
||||
|
||||
stream.Seek(0);
|
||||
array.Seek(0);
|
||||
|
||||
Assert.False(stream.IsAtEnd());
|
||||
Assert.False(array.IsAtEnd());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,6 +75,8 @@
|
||||
|
||||
public void Seek(long position)
|
||||
{
|
||||
isAtEnd = false;
|
||||
|
||||
if (position == 0)
|
||||
{
|
||||
stream.Seek(0, SeekOrigin.Begin);
|
||||
|
||||
Reference in New Issue
Block a user