about summary refs log tree commit diff stats
path: root/400.mu
diff options
context:
space:
mode:
Diffstat (limited to '400.mu')
-rw-r--r--400.mu4
1 files changed, 4 insertions, 0 deletions
diff --git a/400.mu b/400.mu
index 94e517f8..3b81d44a 100644
--- a/400.mu
+++ b/400.mu
@@ -43,6 +43,10 @@ sig check-stream-equal f: (addr stream byte), s: (addr array byte), msg: (addr a
 sig next-stream-line-equal? f: (addr stream byte), s: (addr array byte) -> _/eax: boolean
 sig check-next-stream-line-equal f: (addr stream byte), s: (addr array byte), msg: (addr array byte)
 sig write f: (addr stream byte), s: (addr array byte)
+sig try-write f: (addr stream byte), s: (addr array byte) -> _/eax: boolean
+# probably a bad idea; I definitely want to discourage its use for streams of non-bytes
+sig stream-size f: (addr stream byte) -> _/eax: int
+sig space-remaining-in-stream f: (addr stream byte) -> _/eax: int
 sig write-stream f: (addr stream byte), s: (addr stream byte)
 sig read-byte s: (addr stream byte) -> _/eax: byte
 sig append-byte f: (addr stream byte), n: int  # really just a byte, but I want to pass in literal numbers