aboutsummaryrefslogtreecommitdiff
path: root/core/bytes/buffer.odin
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-12-05 15:36:02 +0000
committergingerBill <bill@gingerbill.org>2020-12-05 15:36:02 +0000
commita82c902f991b11b0f846e4379dfbf19ae962afde (patch)
tree2dc84ddf4a9630b1b4f12b880b750259828d4cc0 /core/bytes/buffer.odin
parent14ae2e0a8d36010d41c52e6aee4d8c60607ce1bc (diff)
Minor correction to bytes.Buffer's vtable
Diffstat (limited to 'core/bytes/buffer.odin')
-rw-r--r--core/bytes/buffer.odin4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/bytes/buffer.odin b/core/bytes/buffer.odin
index 427fc7253..61fde9605 100644
--- a/core/bytes/buffer.odin
+++ b/core/bytes/buffer.odin
@@ -310,6 +310,10 @@ _buffer_vtable := &io.Stream_VTable{
b := (^Buffer)(s.stream_data);
return buffer_write_byte(b, c);
},
+ impl_write_rune = proc(s: io.Stream, r: rune) -> (int, io.Error) {
+ b := (^Buffer)(s.stream_data);
+ return buffer_write_rune(b, r);
+ },
impl_unread_byte = proc(s: io.Stream) -> io.Error {
b := (^Buffer)(s.stream_data);
return buffer_unread_byte(b);