buffer_send_end_signal
September 8th 2024
Cause the buffer to reset it's lifetime
Signature
b32
buffer_send_end_signal(Application_Links* app,
Buffer_ID buffer_id);
Parameters
app
the standard custom layer context pointer
buffer_id
the id of the buffer to receive the signal
Return
non-zero on success, when the buffer exists, zero otherwise
Details
When a buffer's end signal is sent, it's managed scope is cleared, as if it had been destroyed and recreated, and the buffer end hook is run on the buffer. The upshot of this is that it is as if the buffer were closed and re-opened except that it still has the same id.