> home > Custom Layer Boundary API

push_buffer_file_name

January 19th 2020
Get a copy of the file name of a buffer

Signature

C++
String_Const_u8
push_buffer_file_name(Application_Links* app,
                      Arena* arena,
                      Buffer_ID buffer_id);

Parameters

app

the standard custom layer context pointer

arena

the arena on which the returned string will be allocated

buffer_id

the id of the buffer to query

Return

the name of the file attached to the buffer when it was created, when the buffer exists and has an attached file, otherwise an empty string