Partially buffer fmt.fprint* related calls using a bufio.Writer

This commit is contained in:
gingerBill committed 2023-04-27 00:24:00 +01:00
1 parent 623d789529
commit 023cc9ca54
2 files changed
+43 -5

No files matched your search

+8
View File
@@ -227,6 +227,14 @@ writer_to_stream :: proc(b: ^Writer) -> (s: io.Stream) {
return
}
// writer_to_stream converts a Writer into an io.Stream
writer_to_writer :: proc(b: ^Writer) -> (s: io.Writer) {
s.stream_data = b
s.stream_vtable = &_writer_vtable
return
}
@(private)