Implement readInto and read(n)

This commit is contained in:
Zahary Karadjov 2020-05-01 21:39:08 +03:00
commit bf930b6f1b
No known key found for this signature in database
GPG key ID: C8936F8A3073D609
12 changed files with 636 additions and 220 deletions

View file

@ -37,6 +37,8 @@ else:
template fsTranslateErrors*(errMsg: string, body: untyped) =
try:
body
except IOError as err:
raise err
except Exception as err:
if err[] of Defect:
raise (ref Defect)(err)