X
xlar54
Hi all,
In writing something like a text editor, Im confused as to how the
buffer is constructed. Youd think a simple malloc of RAM would do it,
but this actually seems to create an immediate problem. For instance,
if you insert a new line in a document, everything after the new line
must be moved. This could be a slow process depending on the
machine. Id like to hear your thoughts on the best way to achieve
this kind of function. How do these things really work?
In writing something like a text editor, Im confused as to how the
buffer is constructed. Youd think a simple malloc of RAM would do it,
but this actually seems to create an immediate problem. For instance,
if you insert a new line in a document, everything after the new line
must be moved. This could be a slow process depending on the
machine. Id like to hear your thoughts on the best way to achieve
this kind of function. How do these things really work?