> home > Custom Layer Boundary API

get_buffer_by_file_name

September 8th 2024
Retrieve a buffer querying by file name

Signature

C++
Buffer_ID
get_buffer_by_file_name(Application_Links* app,
                        String_Const_u8 file_name,
                        Access_Flag access);

Parameters

app

the standard custom layer context pointer

file_name

the name to query against buffer file names

access

the type of access requirements used to determine whether or not to return a match

Return

the id of the buffer who's attached file name agrees with file_name if it exists and it has the required access state, zero otherwise