ref: be21845c92abf4eb606116c760900105dc64816d
parent: efb728382350bd8ee067cc1135b7e9f98581ca65
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Dec 29 17:51:55 EST 2015
Drop read buffer on seek. Simple, easy, and absolutely not optimal.
--- a/lib/bio/bio.myr
+++ b/lib/bio/bio.myr
@@ -253,6 +253,7 @@
const seek = {f, off
flush(f)
+ f.rstart = f.rend = 0
match std.seek(f.fd, off, std.Seekset)
| `std.Ok ret: -> `std.Ok ret
| `std.Fail e: -> `std.Fail errtype(e)