> home > Custom Layer Boundary API

buffer_get_size

January 19th 2020
Retrieve the size of a buffer in bytes

Signature

C++
i64
buffer_get_size(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 size in bytes of the buffer on success, when the buffer exists, otherwise zero