> home > Custom Layer Boundary API

buffer_get_line_count

January 19th 2020
Retrieve the line count of a buffer

Signature

C++
i64
buffer_get_line_count(Application_Links* app,
                      Buffer_ID buffer_id);

Parameters

app

the standard custom layer context pointer

buffer_id

the id of the buffer to query

Return

the number of lines in the buffer on success, when the buffer exists, otherwise zero