GPAK
1.0.0
A general-purpose archive library
|
◆ filesystem_iterator_create()
This function initializes and returns a new filesystem tree iterator for traversing the filesystem tree starting from the given _root node.
Definition at line 278 of file filesystem_tree.c. 283 filesystem_tree_iterator_t* iterator = (filesystem_tree_iterator_t*)malloc(sizeof(filesystem_tree_iterator_t));
286 iterator->stack_ = (filesystem_iterator_state_t*)malloc(sizeof(filesystem_iterator_state_t) * iterator->stack_capacity_);
288 filesystem_iterator_state_t initial_state = { .node_ = _root, .child_index_ = 0ull, .file_index_ = 0ull };
Definition: gpak_data.h:346 Definition: gpak_data.h:366 References filesystem_iterator_state::node_, filesystem_tree_iterator::stack_, filesystem_tree_iterator::stack_capacity_, and filesystem_tree_iterator::stack_size_. Referenced by _gpak_compressor_generate_dictionary(). |