State-of-the-art binary code analysis tools
interval Namespace Reference

Detailed Description

Functions to work with intervals.

Functions

THREAD_SAFE uval_t last (uval_t off, asize_t s)
 max offset of the interval (assume s != 0)
 
THREAD_SAFE bool overlap (uval_t off1, asize_t s1, uval_t off2, asize_t s2)
 Do (off1,s1) and (off2,s2) overlap?
 
THREAD_SAFE bool includes (uval_t off1, asize_t s1, uval_t off2, asize_t s2)
 Does (off1,s1) include (off2,s2)?
 
THREAD_SAFE bool contains (uval_t off1, asize_t s1, uval_t off)
 Does (off1,s1) contain off?