mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-30 18:41:45 +00:00
Fixes #7877
This commit is contained in:
@@ -89,7 +89,6 @@ proc readData*(s: Stream, buffer: pointer, bufLen: int): int =
|
||||
proc readAll*(s: Stream): string =
|
||||
## Reads all available data.
|
||||
const bufferSize = 1024
|
||||
result = newString(bufferSize)
|
||||
var buffer {.noinit.}: array[bufferSize, char]
|
||||
while true:
|
||||
let readBytes = readData(s, addr(buffer[0]), bufferSize)
|
||||
|
||||
Reference in New Issue
Block a user