should have a "was_modified" parameter - if false, do NOT rewrite the entirety of the buffer. instead, only print the new elements.
that brings another question: void wb_write(instance *current, const char *str, int index); is fine but only appends. what if we need to WRITE instead?
https://github.com/dreais/SimpleGui/blob/3bedf5ada880a33dc4f43d51f68b71989d28286e/Sources/Windows/Buffer/buffer_flush.c#L7
should have a "was_modified" parameter - if false, do NOT rewrite the entirety of the buffer. instead, only print the new elements.
that brings another question:
void wb_write(instance *current, const char *str, int index);
is fine but only appends. what if we need to WRITE instead?