We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
reseteof(s::BufferStream)
1 parent a1a2ac6 commit 3de5e5dCopy full SHA for 3de5e5d
base/stream.jl
@@ -1605,7 +1605,7 @@ end
1605
1606
skip(s::BufferStream, n) = skip(s.buffer, n)
1607
1608
-function reseteof(x::BufferStream)
+function reseteof(s::BufferStream)
1609
lock(s.cond) do
1610
s.status = StatusOpen
1611
nothing
test/iobuffer.jl
@@ -277,6 +277,7 @@ end
277
c = zeros(UInt8,8)
278
@test bytesavailable(bstream) == 8
279
@test !eof(bstream)
280
+ @test Base.reseteof(bstream) === nothing # TODO: Actually test intended effect
281
read!(bstream,c)
282
@test c == a[3:10]
283
@test closewrite(bstream) === nothing
0 commit comments