Fixes #7877
This commit is contained in:
parent
605b65487f
commit
3fd48b7622
1 changed files with 0 additions and 1 deletions
|
|
@ -89,7 +89,6 @@ proc readData*(s: Stream, buffer: pointer, bufLen: int): int =
|
||||||
proc readAll*(s: Stream): string =
|
proc readAll*(s: Stream): string =
|
||||||
## Reads all available data.
|
## Reads all available data.
|
||||||
const bufferSize = 1024
|
const bufferSize = 1024
|
||||||
result = newString(bufferSize)
|
|
||||||
var buffer {.noinit.}: array[bufferSize, char]
|
var buffer {.noinit.}: array[bufferSize, char]
|
||||||
while true:
|
while true:
|
||||||
let readBytes = readData(s, addr(buffer[0]), bufferSize)
|
let readBytes = readData(s, addr(buffer[0]), bufferSize)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue