> home > Custom Layer Boundary API

buffer_compute_cursor

January 19th 2020
Compute a buffer cursor from a buffer and a seek target

Signature

C++
Buffer_Cursor
buffer_compute_cursor(Application_Links* app,
                      Buffer_ID buffer,
                      Buffer_Seek seek);

Parameters

app

the standard custom layer context pointer

buffer

the id of the buffer to query

seek

the seek target to use in a query for full cursor information

Return

the full cursor information for the position specified by the seek, if the buffer exists, otherwise cleared to zero

Related

Buffer_Seek
Buffer_Cursor