Skip to main content

xila_directory_iterator_next

Function xila_directory_iterator_next 

Source
pub unsafe extern "C" fn xila_directory_iterator_next(
    iterator: *mut DirectoryIterator,
    name_buffer: *mut c_char,
    capacity: usize,
    name_length: *mut usize,
    kind: *mut u32,
) -> Status
Expand description

Copy a name without a trailing NUL, skipping dot entries. End leaves outputs unchanged. BufferTooSmall writes only required name_length and retains the entry.

ยงSafety

Iterator must be live and exclusively accessed. Buffer must be writable for capacity bytes (null allowed only at zero capacity). Outputs must be aligned, writable and disjoint from each other, the buffer and iterator.