> home > Custom Layer Boundary API

buffer_history_get_max_record_index

September 8th 2024
Get the largest record index in the buffer history

Signature

C++
History_Record_Index
buffer_history_get_max_record_index(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

if the buffer exists and has history enabled, the maximum index of the records in the history, otherwise zero