ref: 63b175e2da14c72d77f329f05385402104ef0fc7
dir: /lib/bio/test/mem.myr/
use std use bio const main = { var f var buf : byte[16] f = bio.mkmem("hello world") match bio.read(f, buf[:3]) | `bio.Ok "hel": /* ok */ | _: std.fatal("invalid read from memfile") ;; match bio.read(f, buf[:]) | `bio.Ok "lo world": /* ok */ | _: std.fatal("invalid read from memfile") ;; match bio.read(f, buf[:]) | `bio.Eof: /* ok */ | _: std.fatal("expected eof in memfile") ;; }