php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
phpdbg_btree.c File Reference
#include "phpdbg_btree.h"
#include "phpdbg.h"

Go to the source code of this file.

Macros

#define CHOOSE_BRANCH(n)
 

Functions

void phpdbg_btree_init (phpdbg_btree *tree, zend_ulong depth)
 
phpdbg_btree_resultphpdbg_btree_find (phpdbg_btree *tree, zend_ulong idx)
 
phpdbg_btree_resultphpdbg_btree_find_closest (phpdbg_btree *tree, zend_ulong idx)
 
phpdbg_btree_position phpdbg_btree_find_between (phpdbg_btree *tree, zend_ulong lower_idx, zend_ulong higher_idx)
 
phpdbg_btree_resultphpdbg_btree_next (phpdbg_btree_position *pos)
 
int phpdbg_btree_insert_or_update (phpdbg_btree *tree, zend_ulong idx, void *ptr, int flags)
 
int phpdbg_btree_delete (phpdbg_btree *tree, zend_ulong idx)
 
void phpdbg_btree_clean_recursive (phpdbg_btree_branch *branch, zend_ulong depth, bool persistent)
 
void phpdbg_btree_clean (phpdbg_btree *tree)
 
void phpdbg_btree_branch_dump (phpdbg_btree_branch *branch, zend_ulong depth)
 
void phpdbg_btree_dump (phpdbg_btree *tree)
 

Macro Definition Documentation

◆ CHOOSE_BRANCH

#define CHOOSE_BRANCH ( n)
Value:
branch = branch->branches[!!(n)];
zend_long n
Definition ffi.c:4979

Definition at line 22 of file phpdbg_btree.c.

Function Documentation

◆ phpdbg_btree_branch_dump()

void phpdbg_btree_branch_dump ( phpdbg_btree_branch * branch,
zend_ulong depth )

Definition at line 247 of file phpdbg_btree.c.

◆ phpdbg_btree_clean()

void phpdbg_btree_clean ( phpdbg_btree * tree)

Definition at line 239 of file phpdbg_btree.c.

◆ phpdbg_btree_clean_recursive()

void phpdbg_btree_clean_recursive ( phpdbg_btree_branch * branch,
zend_ulong depth,
bool persistent )

Definition at line 227 of file phpdbg_btree.c.

◆ phpdbg_btree_delete()

int phpdbg_btree_delete ( phpdbg_btree * tree,
zend_ulong idx )

Definition at line 179 of file phpdbg_btree.c.

◆ phpdbg_btree_dump()

void phpdbg_btree_dump ( phpdbg_btree * tree)

Definition at line 258 of file phpdbg_btree.c.

◆ phpdbg_btree_find()

phpdbg_btree_result * phpdbg_btree_find ( phpdbg_btree * tree,
zend_ulong idx )

Definition at line 40 of file phpdbg_btree.c.

◆ phpdbg_btree_find_between()

phpdbg_btree_position phpdbg_btree_find_between ( phpdbg_btree * tree,
zend_ulong lower_idx,
zend_ulong higher_idx )

Definition at line 122 of file phpdbg_btree.c.

◆ phpdbg_btree_find_closest()

phpdbg_btree_result * phpdbg_btree_find_closest ( phpdbg_btree * tree,
zend_ulong idx )

Definition at line 67 of file phpdbg_btree.c.

◆ phpdbg_btree_init()

void phpdbg_btree_init ( phpdbg_btree * tree,
zend_ulong depth )

Definition at line 33 of file phpdbg_btree.c.

◆ phpdbg_btree_insert_or_update()

int phpdbg_btree_insert_or_update ( phpdbg_btree * tree,
zend_ulong idx,
void * ptr,
int flags )

Definition at line 144 of file phpdbg_btree.c.

◆ phpdbg_btree_next()

phpdbg_btree_result * phpdbg_btree_next ( phpdbg_btree_position * pos)

Definition at line 132 of file phpdbg_btree.c.