Minor correction to bytes.Buffer's vtable

This commit is contained in:
gingerBill
2020-12-05 15:36:02 +00:00
parent 14ae2e0a8d
commit a82c902f99
2 changed files with 30 additions and 18 deletions
+4
View File
@@ -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);