Allow withReadableRange(0)
This commit is contained in:
parent
5437bba3ce
commit
4c5464a7e0
1 changed files with 0 additions and 1 deletions
|
|
@ -295,7 +295,6 @@ template totalUnconsumedBytes*(s: AsyncInputStream): Natural =
|
||||||
totalUnconsumedBytes InputStream(s)
|
totalUnconsumedBytes InputStream(s)
|
||||||
|
|
||||||
proc limitReadableRange(s: InputStream, rangeLen: Natural): Natural =
|
proc limitReadableRange(s: InputStream, rangeLen: Natural): Natural =
|
||||||
fsAssert rangeLen > 0
|
|
||||||
s.vtable = nil
|
s.vtable = nil
|
||||||
|
|
||||||
let runway = s.span.len
|
let runway = s.span.len
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue