actf 0.0.1
An acute CTF reader
Loading...
Searching...
No Matches
/home/adwe/code/actf/rng.h File Reference

Range set related methods. More...

#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

Typedefs

typedef struct actf_rng_set actf_rng_set
 A range set.

Functions

bool actf_rng_set_intersect_rng_set (const actf_rng_set *restrict rs_a, const actf_rng_set *restrict rs_b)
 Check whether two range sets intersect.
bool actf_rng_set_intersect_sint (const actf_rng_set *rs, int64_t pt)
 Check if a range set intersects with a point.
bool actf_rng_set_intersect_uint (const actf_rng_set *rs, uint64_t pt)
 Check if a range set intersects with a point.

Detailed Description

Range set related methods.

Function Documentation

◆ actf_rng_set_intersect_rng_set()

bool actf_rng_set_intersect_rng_set ( const actf_rng_set *restrict rs_a,
const actf_rng_set *restrict rs_b )

Check whether two range sets intersect.

Parameters
rs_arange set a
rs_brange set b
Returns
whether range set a intersects range set b

◆ actf_rng_set_intersect_sint()

bool actf_rng_set_intersect_sint ( const actf_rng_set * rs,
int64_t pt )

Check if a range set intersects with a point.

Parameters
rsthe range set
ptthe point
Returns
whether the range intersects a point

◆ actf_rng_set_intersect_uint()

bool actf_rng_set_intersect_uint ( const actf_rng_set * rs,
uint64_t pt )

Check if a range set intersects with a point.

Parameters
rsthe range set
ptthe point
Returns
whether the range intersects a point