summaryrefslogtreecommitdiffstats
path: root/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream.c')
-rw-r--r--stream.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/stream.c b/stream.c
index 7120fd78..d264da16 100644
--- a/stream.c
+++ b/stream.c
@@ -2972,6 +2972,14 @@ val get_byte(val stream_in)
return ops->get_byte(stream);
}
+val get_bytes(val self, val stream_in, mem_t *ptr, ucnum len)
+{
+ val stream = default_arg(stream_in, std_input);
+ struct strm_ops *ops = coerce(struct strm_ops *,
+ cobj_ops(self, stream, stream_s));
+ return unum(ops->fill_buf(stream, ptr, len, 0));
+}
+
val unget_char(val ch, val stream_in)
{
val self = lit("unget-char");