This commit is contained in:
data-man
2018-05-25 06:59:54 +03:00
parent 605b65487f
commit 3fd48b7622

View File

@@ -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)