mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 06:38:47 +00:00
Update fmt to record the bytes written in the fmt.Info
This commit is contained in:
+203
-210
File diff suppressed because it is too large
Load Diff
@@ -334,11 +334,11 @@ is_relative_slice :: proc(info: ^Type_Info) -> bool {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
write_typeid_builder :: proc(buf: ^strings.Builder, id: typeid) {
|
write_typeid_builder :: proc(buf: ^strings.Builder, id: typeid, n_written: ^int = nil) -> (n: int, err: io.Error) {
|
||||||
write_type(buf, type_info_of(id))
|
return write_type_writer(strings.to_writer(buf), type_info_of(id))
|
||||||
}
|
}
|
||||||
write_typeid_writer :: proc(writer: io.Writer, id: typeid) {
|
write_typeid_writer :: proc(writer: io.Writer, id: typeid, n_written: ^int = nil) -> (n: int, err: io.Error) {
|
||||||
write_type(writer, type_info_of(id))
|
return write_type_writer(writer, type_info_of(id), n_written)
|
||||||
}
|
}
|
||||||
|
|
||||||
write_typeid :: proc{
|
write_typeid :: proc{
|
||||||
|
|||||||
Reference in New Issue
Block a user