IDAPython 9.0
Loading...
Searching...
No Matches
netnode Class Reference

Proxy of C++ netnode class.

Inheritance diagram for netnode:

Public Member Functions

 __init__ (self, *args)
 init(self, num=nodeidx_t(-1)) -> netnode
 
"bool" create (self, *args)
 create(self, _name, namlen=0) -> bool Create unnamed netnode.
 
"void" kill (self)
 kill(self) Delete a netnode with all information attached to it.
 
"ssize_t" get_name (self)
 get_name(self) -> ssize_t Get the netnode name.
 
"bool" rename (self, "char const *" newname, "size_t" namlen=0)
 rename(self, newname, namlen=0) -> bool Rename a netnode.
 
"ssize_t" valobj (self, *args)
 valobj(self) -> ssize_t Get value of netnode.
 
"ssize_t" valstr (self)
 valstr(self) -> ssize_t
 
"bool" set (self, "void const *" value)
 set(self, value) -> bool Set value of netnode.
 
"bool" delvalue (self)
 delvalue(self) -> bool Delete value of netnode.
 
"bool" set_long (self, "nodeidx_t" x)
 set_long(self, x) -> bool Value of netnode as a long number:
 
"bool" value_exists (self)
 value_exists(self) -> bool
 
"nodeidx_t" long_value (self)
 long_value(self) -> nodeidx_t
 
"nodeidx_t" altval (self, *args)
 altval(self, alt, tag=atag) -> nodeidx_t Get altval element of the specified array.
 
"nodeidx_t" altval_ea (self, *args)
 altval_ea(self, ea, tag=atag) -> nodeidx_t
 
"bool" altset (self, *args)
 altset(self, alt, value, tag=atag) -> bool Set value of altval array.
 
"bool" altset_ea (self, *args)
 altset_ea(self, ea, value, tag=atag) -> bool
 
"bool" altdel_ea (self, *args)
 altdel_ea(self, ea, tag=atag) -> bool
 
"bool" easet (self, "ea_t" ea, "ea_t" addr, "uchar" tag)
 easet(self, ea, addr, tag) -> bool Store/retrieve/delete an address value in the netnode that corresponds to an address.
 
"ea_t" eaget (self, "ea_t" ea, "uchar" tag)
 eaget(self, ea, tag) -> ea_t
 
"bool" eadel (self, "ea_t" ea, "uchar" tag)
 eadel(self, ea, tag) -> bool
 
"bool" easet_idx (self, "nodeidx_t" idx, "ea_t" addr, "uchar" tag)
 easet_idx(self, idx, addr, tag) -> bool
 
"ea_t" eaget_idx (self, "nodeidx_t" idx, "uchar" tag)
 eaget_idx(self, idx, tag) -> ea_t
 
"bool" easet_idx8 (self, "uchar" idx, "ea_t" addr, "uchar" tag)
 easet_idx8(self, idx, addr, tag) -> bool
 
"ea_t" eaget_idx8 (self, "uchar" idx, "uchar" tag)
 eaget_idx8(self, idx, tag) -> ea_t
 
"bool" eadel_idx8 (self, "uchar" idx, "uchar" tag)
 eadel_idx8(self, idx, tag) -> bool
 
"nodeidx_t" altfirst (self, *args)
 altfirst(self, tag=atag) -> nodeidx_t Get first existing element of altval array.
 
"nodeidx_t" altnext (self, *args)
 altnext(self, cur, tag=atag) -> nodeidx_t Get next existing element of altval array.
 
"nodeidx_t" altlast (self, *args)
 altlast(self, tag=atag) -> nodeidx_t Get last element of altval array.
 
"nodeidx_t" altprev (self, *args)
 altprev(self, cur, tag=atag) -> nodeidx_t Get previous existing element of altval array.
 
"size_t" altshift (self, *args)
 altshift(self, _from, to, size, tag=atag) -> size_t Shift the altval array elements.
 
"uchar" charval (self, "nodeidx_t" alt, "uchar" tag)
 charval(self, alt, tag) -> uchar
 
"bool" charset (self, "nodeidx_t" alt, "uchar" val, "uchar" tag)
 charset(self, alt, val, tag) -> bool
 
"bool" chardel (self, "nodeidx_t" alt, "uchar" tag)
 chardel(self, alt, tag) -> bool
 
"uchar" charval_ea (self, "ea_t" ea, "uchar" tag)
 charval_ea(self, ea, tag) -> uchar
 
"bool" charset_ea (self, "ea_t" ea, "uchar" val, "uchar" tag)
 charset_ea(self, ea, val, tag) -> bool
 
"bool" chardel_ea (self, "ea_t" ea, "uchar" tag)
 chardel_ea(self, ea, tag) -> bool
 
"nodeidx_t" charfirst (self, "uchar" tag)
 charfirst(self, tag) -> nodeidx_t
 
"nodeidx_t" charnext (self, "nodeidx_t" cur, "uchar" tag)
 charnext(self, cur, tag) -> nodeidx_t
 
"nodeidx_t" charlast (self, "uchar" tag)
 charlast(self, tag) -> nodeidx_t
 
"nodeidx_t" charprev (self, "nodeidx_t" cur, "uchar" tag)
 charprev(self, cur, tag) -> nodeidx_t
 
"size_t" charshift (self, "nodeidx_t" _from, "nodeidx_t" to, "nodeidx_t" size, "uchar" tag)
 charshift(self, _from, to, size, tag) -> size_t
 
"nodeidx_t" altval_idx8 (self, "uchar" alt, "uchar" tag)
 altval_idx8(self, alt, tag) -> nodeidx_t
 
"bool" altset_idx8 (self, "uchar" alt, "nodeidx_t" val, "uchar" tag)
 altset_idx8(self, alt, val, tag) -> bool
 
"bool" altdel_idx8 (self, "uchar" alt, "uchar" tag)
 altdel_idx8(self, alt, tag) -> bool
 
"nodeidx_t" altfirst_idx8 (self, "uchar" tag)
 altfirst_idx8(self, tag) -> nodeidx_t
 
"nodeidx_t" altnext_idx8 (self, "uchar" cur, "uchar" tag)
 altnext_idx8(self, cur, tag) -> nodeidx_t
 
"nodeidx_t" altlast_idx8 (self, "uchar" tag)
 altlast_idx8(self, tag) -> nodeidx_t
 
"nodeidx_t" altprev_idx8 (self, "uchar" cur, "uchar" tag)
 altprev_idx8(self, cur, tag) -> nodeidx_t
 
"uchar" charval_idx8 (self, "uchar" alt, "uchar" tag)
 charval_idx8(self, alt, tag) -> uchar
 
"bool" charset_idx8 (self, "uchar" alt, "uchar" val, "uchar" tag)
 charset_idx8(self, alt, val, tag) -> bool
 
"bool" chardel_idx8 (self, "uchar" alt, "uchar" tag)
 chardel_idx8(self, alt, tag) -> bool
 
"nodeidx_t" charfirst_idx8 (self, "uchar" tag)
 charfirst_idx8(self, tag) -> nodeidx_t
 
"nodeidx_t" charnext_idx8 (self, "uchar" cur, "uchar" tag)
 charnext_idx8(self, cur, tag) -> nodeidx_t
 
"nodeidx_t" charlast_idx8 (self, "uchar" tag)
 charlast_idx8(self, tag) -> nodeidx_t
 
"nodeidx_t" charprev_idx8 (self, "uchar" cur, "uchar" tag)
 charprev_idx8(self, cur, tag) -> nodeidx_t
 
"bool" altdel (self, *args)
 altdel(self, alt, tag=atag) -> bool Delete all elements of altval array.
 
"bool" altdel_all (self, *args)
 altdel_all(self, tag=atag) -> bool Delete all elements of the specified altval array.
 
"ssize_t" supval (self, *args)
 supval(self, alt, tag=stag) -> ssize_t Get value of the specified supval array element.
 
"ssize_t" supval_ea (self, *args)
 supval_ea(self, ea, tag=stag) -> ssize_t
 
"ssize_t" supstr (self, *args)
 supstr(self, alt, tag=stag) -> ssize_t
 
"ssize_t" supstr_ea (self, *args)
 supstr_ea(self, ea, tag=stag) -> ssize_t
 
"bool" supdel_ea (self, *args)
 supdel_ea(self, ea, tag=stag) -> bool
 
"nodeidx_t" lower_bound (self, *args)
 lower_bound(self, cur, tag=stag) -> nodeidx_t Get lower bound of existing elements of supval array.
 
"nodeidx_t" lower_bound_ea (self, *args)
 lower_bound_ea(self, ea, tag=stag) -> nodeidx_t
 
"nodeidx_t" supfirst (self, *args)
 supfirst(self, tag=stag) -> nodeidx_t Get first existing element of supval array.
 
"nodeidx_t" supnext (self, *args)
 supnext(self, cur, tag=stag) -> nodeidx_t Get next existing element of supval array.
 
"nodeidx_t" suplast (self, *args)
 suplast(self, tag=stag) -> nodeidx_t Get last existing element of supval array.
 
"nodeidx_t" supprev (self, *args)
 supprev(self, cur, tag=stag) -> nodeidx_t Get previous existing element of supval array.
 
"size_t" supshift (self, *args)
 supshift(self, _from, to, size, tag=stag) -> size_t Shift the supval array elements.
 
"ssize_t" supval_idx8 (self, *args)
 supval_idx8(self, alt, tag) -> ssize_t
 
"ssize_t" supstr_idx8 (self, "uchar" alt, "uchar" tag)
 supstr_idx8(self, alt, tag) -> ssize_t
 
"bool" supset_idx8 (self, "uchar" alt, "void const *" value, "uchar" tag)
 supset_idx8(self, alt, value, tag) -> bool
 
"bool" supdel_idx8 (self, "uchar" alt, "uchar" tag)
 supdel_idx8(self, alt, tag) -> bool
 
"nodeidx_t" lower_bound_idx8 (self, "uchar" alt, "uchar" tag)
 lower_bound_idx8(self, alt, tag) -> nodeidx_t
 
"nodeidx_t" supfirst_idx8 (self, "uchar" tag)
 supfirst_idx8(self, tag) -> nodeidx_t
 
"nodeidx_t" supnext_idx8 (self, "uchar" alt, "uchar" tag)
 supnext_idx8(self, alt, tag) -> nodeidx_t
 
"nodeidx_t" suplast_idx8 (self, "uchar" tag)
 suplast_idx8(self, tag) -> nodeidx_t
 
"nodeidx_t" supprev_idx8 (self, "uchar" alt, "uchar" tag)
 supprev_idx8(self, alt, tag) -> nodeidx_t
 
"bool" supdel (self, *args)
 supdel(self, alt, tag=stag) -> bool Delete all elements of supval array.
 
"bool" supdel_all (self, "uchar" tag)
 supdel_all(self, tag) -> bool Delete all elements of the specified supval array.
 
"int" supdel_range (self, "nodeidx_t" idx1, "nodeidx_t" idx2, "uchar" tag)
 supdel_range(self, idx1, idx2, tag) -> int Delete range of elements in the specified supval array.
 
"int" supdel_range_idx8 (self, "uchar" idx1, "uchar" idx2, "uchar" tag)
 supdel_range_idx8(self, idx1, idx2, tag) -> int Same as above, but accepts 8-bit indexes.
 
"ssize_t" hashval (self, *args)
 hashval(self, idx, tag=htag) -> ssize_t Get value of the specified hash element.
 
"ssize_t" hashstr (self, *args)
 hashstr(self, idx, tag=htag) -> ssize_t
 
"nodeidx_t" hashval_long (self, *args)
 hashval_long(self, idx, tag=htag) -> nodeidx_t Get value of the specified hash element.
 
"bool" hashset (self, *args)
 hashset(self, idx, value, tag=htag) -> bool Set value of hash element to long value.
 
"bool" hashset_idx (self, *args)
 hashset_idx(self, idx, value, tag=htag) -> bool
 
"bool" hashdel (self, *args)
 hashdel(self, idx, tag=htag) -> bool Delete hash element.
 
"ssize_t" hashfirst (self, *args)
 hashfirst(self, tag=htag) -> ssize_t
 
"ssize_t" hashnext (self, *args)
 hashnext(self, idx, tag=htag) -> ssize_t
 
"ssize_t" hashlast (self, *args)
 hashlast(self, tag=htag) -> ssize_t
 
"ssize_t" hashprev (self, *args)
 hashprev(self, idx, tag=htag) -> ssize_t
 
"bool" hashdel_all (self, *args)
 hashdel_all(self, tag=htag) -> bool Delete all elements of hash.
 
"size_t" blobsize (self, "nodeidx_t" _start, "uchar" tag)
 blobsize(self, _start, tag) -> size_t Get size of blob.
 
"size_t" blobsize_ea (self, "ea_t" ea, "uchar" tag)
 blobsize_ea(self, ea, tag) -> size_t
 
"bool" setblob (self, "void const *" buf, "nodeidx_t" _start, "uchar" tag)
 setblob(self, buf, _start, tag) -> bool Store a blob in a netnode.
 
"bool" setblob_ea (self, "void const *" buf, "ea_t" ea, "uchar" tag)
 setblob_ea(self, buf, ea, tag) -> bool
 
"int" delblob (self, "nodeidx_t" _start, "uchar" tag)
 delblob(self, _start, tag) -> int Delete a blob.
 
"int" delblob_ea (self, "ea_t" ea, "uchar" tag)
 delblob_ea(self, ea, tag) -> int
 
"size_t" blobshift (self, "nodeidx_t" _from, "nodeidx_t" to, "nodeidx_t" size, "uchar" tag)
 blobshift(self, _from, to, size, tag) -> size_t Shift the blob array elements.
 
"bool" start (self)
 start(self) -> bool Get first netnode in the graph.
 
"bool" end (self)
 end(self) -> bool Get last netnode in the graph.
 
"bool" next (self)
 next(self) -> bool Get next netnode in the graph.
 
"bool" prev (self)
 prev(self) -> bool Get prev netnode in the graph.
 
"size_t" copyto (self, "netnode" destnode, "nodeidx_t" count=1)
 copyto(self, destnode, count=1) -> size_t
 
"size_t" moveto (self, "netnode" destnode, "nodeidx_t" count=1)
 moveto(self, destnode, count=1) -> size_t
 
"bool" __eq__ (self, *args)
 eq(self, n) -> bool
 
"bool" __ne__ (self, *args)
 ne(self, n) -> bool
 
"nodeidx_t" index (self)
 index(self) -> nodeidx_t
 
"PyObject *" getblob (self, "nodeidx_t" start, "char" tag)
 getblob(self, start, tag) -> bytes or None Get blob from a netnode into a qstring* and make sure the string is null- terminated.
 
"PyObject *" getclob (self, "nodeidx_t" start, "char" tag)
 getclob(self, start, tag) -> str
 
"PyObject *" getblob_ea (self, "ea_t" ea, "char" tag)
 getblob_ea(self, ea, tag) -> PyObject *
 
"PyObject *" hashstr_buf (self, *args)
 hashstr_buf(self, idx, tag=htag) -> PyObject
 
"bool" hashset_buf (self, *args)
 hashset_buf(self, idx, py_str, tag=htag) -> bool
 
"bool" supset (self, *args)
 supset(self, alt, value, tag=stag) -> bool Set value of supval array element.
 
"bool" supset_ea (self, *args)
 supset_ea(self, ea, value, tag=stag) -> bool
 

Static Public Member Functions

"bool" exist ("char const *" _name)
 exist(_name) -> bool Does the netnode with the specified name exist?
 

Properties

 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
* args )
Parameters
numnodeidx_t

init(self, _name, namlen=0, do_create=False) -> netnode

Parameters
_namechar const *
namlensize_t
do_createbool

Member Function Documentation

◆ __eq__()

"bool" __eq__ ( self,
* args )
Parameters
nnetnode &

eq(self, x) -> bool

Parameters
xnodeidx_t

◆ __ne__()

"bool" __ne__ ( self,
* args )
Parameters
nnetnode &

ne(self, x) -> bool

Parameters
xnodeidx_t

◆ altdel()

"bool" altdel ( self,
* args )

This function may be applied to 32-bit and 8-bit altval arrays. This function deletes the whole altval array.

Parameters
altnodeidx_t
taguchar
Returns
: success altdel(self) -> bool

◆ altdel_all()

"bool" altdel_all ( self,
* args )

This function may be applied to 32-bit and 8-bit altval arrays. This function deletes the whole altval array.

Parameters
tag(C++: uchar) tag of array
Returns
: success

◆ altdel_ea()

"bool" altdel_ea ( self,
* args )
Parameters
eaea_t
taguchar

◆ altdel_idx8()

"bool" altdel_idx8 ( self,
"uchar" alt,
"uchar" tag )
Parameters
altuchar
taguchar

◆ altfirst()

"nodeidx_t" altfirst ( self,
* args )
Parameters
tag(C++: uchar) tag of array
Returns
: index of first existing element of altval array, BADNODE if altval array is empty

◆ altfirst_idx8()

"nodeidx_t" altfirst_idx8 ( self,
"uchar" tag )
Parameters
taguchar

◆ altlast()

"nodeidx_t" altlast ( self,
* args )
Parameters
tag(C++: uchar) tag of array
Returns
: index of last existing element of altval array, BADNODE if altval array is empty

◆ altlast_idx8()

"nodeidx_t" altlast_idx8 ( self,
"uchar" tag )
Parameters
taguchar

◆ altnext()

"nodeidx_t" altnext ( self,
* args )
Parameters
cur(C++: nodeidx_t) current index
tag(C++: uchar) tag of array
Returns
: index of the next existing element of altval array, BADNODE if no more altval array elements exist

◆ altnext_idx8()

"nodeidx_t" altnext_idx8 ( self,
"uchar" cur,
"uchar" tag )
Parameters
curuchar
taguchar

◆ altprev()

"nodeidx_t" altprev ( self,
* args )
Parameters
cur(C++: nodeidx_t) current index
tag(C++: uchar) tag of array
Returns
: index of the previous existing element of altval array, BADNODE if no more altval array elements exist

◆ altprev_idx8()

"nodeidx_t" altprev_idx8 ( self,
"uchar" cur,
"uchar" tag )
Parameters
curuchar
taguchar

◆ altset()

"bool" altset ( self,
* args )
Parameters
alt(C++: nodeidx_t) index into array of altvals
value(C++: nodeidx_t) new value of altval element
tag(C++: uchar) tag of array
Return values
1ok
0failed, normally should not occur

◆ altset_ea()

"bool" altset_ea ( self,
* args )
Parameters
eaea_t
valuenodeidx_t
taguchar

◆ altset_idx8()

"bool" altset_idx8 ( self,
"uchar" alt,
"nodeidx_t" val,
"uchar" tag )
Parameters
altuchar
valnodeidx_t
taguchar

◆ altshift()

"size_t" altshift ( self,
* args )

Moves the array elements at (from..from+size) to (to..to+size)

Parameters
from(C++: nodeidx_t)
to(C++: nodeidx_t)
size(C++: nodeidx_t)
tag(C++: uchar)
Returns
: number of shifted elements

◆ altval()

"nodeidx_t" altval ( self,
* args )
Parameters
alt(C++: nodeidx_t) index into array of altvals
tag(C++: uchar) tag of array. may be omitted
Returns
: value of altval element. nonexistent altval members are returned as zeroes

◆ altval_ea()

"nodeidx_t" altval_ea ( self,
* args )
Parameters
eaea_t
taguchar

◆ altval_idx8()

"nodeidx_t" altval_idx8 ( self,
"uchar" alt,
"uchar" tag )
Parameters
altuchar
taguchar

◆ blobshift()

"size_t" blobshift ( self,
"nodeidx_t" _from,
"nodeidx_t" to,
"nodeidx_t" size,
"uchar" tag )

Moves the array elements at (from..from+size) to (to..to+size)

Parameters
from(C++: nodeidx_t)
to(C++: nodeidx_t)
size(C++: nodeidx_t)
tag(C++: uchar)
Returns
: number of shifted elements

◆ blobsize()

"size_t" blobsize ( self,
"nodeidx_t" _start,
"uchar" tag )
Parameters
_start(C++: nodeidx_t) index of the first supval element used to store blob
tag(C++: uchar) tag of supval array
Returns
: number of bytes required to store a blob

◆ blobsize_ea()

"size_t" blobsize_ea ( self,
"ea_t" ea,
"uchar" tag )
Parameters
eaea_t
taguchar

◆ chardel()

"bool" chardel ( self,
"nodeidx_t" alt,
"uchar" tag )
Parameters
altnodeidx_t
taguchar

◆ chardel_ea()

"bool" chardel_ea ( self,
"ea_t" ea,
"uchar" tag )
Parameters
eaea_t
taguchar

◆ chardel_idx8()

"bool" chardel_idx8 ( self,
"uchar" alt,
"uchar" tag )
Parameters
altuchar
taguchar

◆ charfirst()

"nodeidx_t" charfirst ( self,
"uchar" tag )
Parameters
taguchar

◆ charfirst_idx8()

"nodeidx_t" charfirst_idx8 ( self,
"uchar" tag )
Parameters
taguchar

◆ charlast()

"nodeidx_t" charlast ( self,
"uchar" tag )
Parameters
taguchar

◆ charlast_idx8()

"nodeidx_t" charlast_idx8 ( self,
"uchar" tag )
Parameters
taguchar

◆ charnext()

"nodeidx_t" charnext ( self,
"nodeidx_t" cur,
"uchar" tag )
Parameters
curnodeidx_t
taguchar

◆ charnext_idx8()

"nodeidx_t" charnext_idx8 ( self,
"uchar" cur,
"uchar" tag )
Parameters
curuchar
taguchar

◆ charprev()

"nodeidx_t" charprev ( self,
"nodeidx_t" cur,
"uchar" tag )
Parameters
curnodeidx_t
taguchar

◆ charprev_idx8()

"nodeidx_t" charprev_idx8 ( self,
"uchar" cur,
"uchar" tag )
Parameters
curuchar
taguchar

◆ charset()

"bool" charset ( self,
"nodeidx_t" alt,
"uchar" val,
"uchar" tag )
Parameters
altnodeidx_t
valuchar
taguchar

◆ charset_ea()

"bool" charset_ea ( self,
"ea_t" ea,
"uchar" val,
"uchar" tag )
Parameters
eaea_t
valuchar
taguchar

◆ charset_idx8()

"bool" charset_idx8 ( self,
"uchar" alt,
"uchar" val,
"uchar" tag )
Parameters
altuchar
valuchar
taguchar

◆ charshift()

"size_t" charshift ( self,
"nodeidx_t" _from,
"nodeidx_t" to,
"nodeidx_t" size,
"uchar" tag )
Parameters
fromnodeidx_t
tonodeidx_t
sizenodeidx_t
taguchar

◆ charval()

"uchar" charval ( self,
"nodeidx_t" alt,
"uchar" tag )
Parameters
altnodeidx_t
taguchar

◆ charval_ea()

"uchar" charval_ea ( self,
"ea_t" ea,
"uchar" tag )
Parameters
eaea_t
taguchar

◆ charval_idx8()

"uchar" charval_idx8 ( self,
"uchar" alt,
"uchar" tag )
Parameters
altuchar
taguchar

◆ copyto()

"size_t" copyto ( self,
"netnode" destnode,
"nodeidx_t" count = 1 )
Parameters
destnodenetnode
countnodeidx_t

◆ create()

"bool" create ( self,
* args )
Return values
1ok
0should not happen, indicates internal error
Parameters
_namechar const *
namlensize_t

create(self) -> bool

◆ delblob()

"int" delblob ( self,
"nodeidx_t" _start,
"uchar" tag )
Parameters
_start(C++: nodeidx_t) index of the first supval element used to store blob
tag(C++: uchar) tag of supval array
Returns
: number of deleted supvals

◆ delblob_ea()

"int" delblob_ea ( self,
"ea_t" ea,
"uchar" tag )
Parameters
eaea_t
taguchar

◆ delvalue()

"bool" delvalue ( self)
Return values
1ok
0failed, netnode is bad or other error

◆ eadel()

"bool" eadel ( self,
"ea_t" ea,
"uchar" tag )
Parameters
eaea_t
taguchar

◆ eadel_idx8()

"bool" eadel_idx8 ( self,
"uchar" idx,
"uchar" tag )
Parameters
idxuchar
taguchar

◆ eaget()

"ea_t" eaget ( self,
"ea_t" ea,
"uchar" tag )
Parameters
eaea_t
taguchar

◆ eaget_idx()

"ea_t" eaget_idx ( self,
"nodeidx_t" idx,
"uchar" tag )
Parameters
idxnodeidx_t
taguchar

◆ eaget_idx8()

"ea_t" eaget_idx8 ( self,
"uchar" idx,
"uchar" tag )
Parameters
idxuchar
taguchar

◆ easet()

"bool" easet ( self,
"ea_t" ea,
"ea_t" addr,
"uchar" tag )
Parameters
ea(C++: ea_t)
addr(C++: ea_t)
tag(C++: uchar)

◆ easet_idx()

"bool" easet_idx ( self,
"nodeidx_t" idx,
"ea_t" addr,
"uchar" tag )
Parameters
idxnodeidx_t
addrea_t
taguchar

◆ easet_idx8()

"bool" easet_idx8 ( self,
"uchar" idx,
"ea_t" addr,
"uchar" tag )
Parameters
idxuchar
addrea_t
taguchar

◆ end()

"bool" end ( self)

Sets netnodenumber to the highest existing number.

Return values
trueok
falsegraph is empty

◆ exist()

"bool" exist ( "char const *" _name)
static
Parameters
_name(C++: const char *) char const *

◆ get_name()

"ssize_t" get_name ( self)
Returns
: -1 if netnode is unnamed (buf is untouched in this case), otherwise the name length

◆ getblob()

"PyObject *" getblob ( self,
"nodeidx_t" start,
"char" tag )
Parameters
startnodeidx_t
tag(C++: uchar) tag of supval array
Returns
: -1 if blob doesn't exist size of string (including terminating null) otherwise

◆ getblob_ea()

"PyObject *" getblob_ea ( self,
"ea_t" ea,
"char" tag )
Parameters
eaea_t
tagchar

◆ getclob()

"PyObject *" getclob ( self,
"nodeidx_t" start,
"char" tag )
Parameters
startnodeidx_t
tagchar

◆ hashdel()

"bool" hashdel ( self,
* args )
Parameters
idx(C++: const char *) index into hash
tag(C++: uchar) tag of hash. Default: htag
Return values
truedeleted
falseelement does not exist

◆ hashdel_all()

"bool" hashdel_all ( self,
* args )

This function deletes the whole hash.

Parameters
tag(C++: uchar) tag of hash. Default: htag
Returns
: success

◆ hashfirst()

"ssize_t" hashfirst ( self,
* args )
See also
: hashfirst(qstring *buf, uchar tag=htag) const
Parameters
tag(C++: uchar)

◆ hashlast()

"ssize_t" hashlast ( self,
* args )
See also
: hashlast(qstring *buf, uchar tag=htag) const
Parameters
tag(C++: uchar)

◆ hashnext()

"ssize_t" hashnext ( self,
* args )
See also
: hashnext(qstring *buf, const char *idx, uchar tag=htag) const
Parameters
idx(C++: const char *) char const *
tag(C++: uchar)

◆ hashprev()

"ssize_t" hashprev ( self,
* args )
See also
: hashprev(qstring *buf, const char *idx, uchar tag=htag) const
Parameters
idx(C++: const char *) char const *
tag(C++: uchar)

◆ hashset()

"bool" hashset ( self,
* args )
Parameters
idx(C++: const char *) index into hash
value(C++: nodeidx_t) new value of hash element
tag(C++: uchar) tag of hash. Default: htag
Return values
1ok
0should not occur - indicates internal error

◆ hashset_buf()

"bool" hashset_buf ( self,
* args )
Parameters
idxchar const *
py_strPyObject *
tagchar

◆ hashset_idx()

"bool" hashset_idx ( self,
* args )
Parameters
idxchar const *
valuenodeidx_t
taguchar

◆ hashstr()

"ssize_t" hashstr ( self,
* args )
See also
: hashstr(qstring *buf, const char *idx, uchar tag=htag) const
Parameters
idx(C++: const char *) char const *
tag(C++: uchar)

◆ hashstr_buf()

"PyObject *" hashstr_buf ( self,
* args )
Parameters
idxchar const *
tagchar

◆ hashval()

"ssize_t" hashval ( self,
* args )
Parameters
idx(C++: const char *) index into hash
tag(C++: uchar) tag of hash. Default: htag
Returns
: -1 if element doesn't exist or idx is nullptr. otherwise returns the value size in bytes

◆ hashval_long()

"nodeidx_t" hashval_long ( self,
* args )
Parameters
idx(C++: const char *) index into hash
tag(C++: uchar) tag of hash. Default: htag
Returns
: value of hash element (it should be set using hashset(nodeidx_t)), 0 if the element does not exist

◆ index()

"nodeidx_t" index ( self)

◆ kill()

"void" kill ( self)

◆ long_value()

"nodeidx_t" long_value ( self)

◆ lower_bound()

"nodeidx_t" lower_bound ( self,
* args )
Parameters
cur(C++: nodeidx_t) current index
tag(C++: uchar) tag of array
Returns
: index of first existing element of supval array >= cur BADNODE if supval array is empty

◆ lower_bound_ea()

"nodeidx_t" lower_bound_ea ( self,
* args )
Parameters
eaea_t
taguchar

◆ lower_bound_idx8()

"nodeidx_t" lower_bound_idx8 ( self,
"uchar" alt,
"uchar" tag )
Parameters
altuchar
taguchar

◆ moveto()

"size_t" moveto ( self,
"netnode" destnode,
"nodeidx_t" count = 1 )
Parameters
destnodenetnode
countnodeidx_t

◆ next()

"bool" next ( self)

Sets netnodenumber to the next existing number

Return values
trueok
falseno more netnodes

◆ prev()

"bool" prev ( self)

Sets netnodenumber to the previous existing number

Return values
trueok
falseno more netnodes

◆ rename()

"bool" rename ( self,
"char const *" newname,
"size_t" namlen = 0 )
Parameters
newname(C++: const char *) new name of netnode. nullptr or "" means to delete name. names of user-defined netnodes must have the "$ " prefix in order to avoid clashes with program byte names.
namlen(C++: size_t) length of new name. if not specified, it will be calculated using strlen()
Return values
1ok
0failed, newname is already used

◆ set()

"bool" set ( self,
"void const *" value )
Parameters
value(C++: const void *) pointer to value
Returns
: 1 - ok

◆ set_long()

"bool" set_long ( self,
"nodeidx_t" x )
Parameters
x(C++: nodeidx_t)

◆ setblob()

"bool" setblob ( self,
"void const *" buf,
"nodeidx_t" _start,
"uchar" tag )
Parameters
buf(C++: const void *) pointer to blob to save
_start(C++: nodeidx_t)
tag(C++: uchar) tag of supval array
Returns
: success

◆ setblob_ea()

"bool" setblob_ea ( self,
"void const *" buf,
"ea_t" ea,
"uchar" tag )
Parameters
bufvoid const *
eaea_t
taguchar

◆ start()

"bool" start ( self)

Sets netnodenumber to the lowest existing number.

Return values
trueok
falsegraph is empty

◆ supdel()

"bool" supdel ( self,
* args )

This function may be applied to 32-bit and 8-bit supval arrays. This function deletes the whole supval array.

Parameters
altnodeidx_t
taguchar
Returns
: success supdel(self) -> bool

◆ supdel_all()

"bool" supdel_all ( self,
"uchar" tag )

This function may be applied to 32-bit and 8-bit supval arrays. This function deletes the whole supval array.

Parameters
tag(C++: uchar)
Returns
: success

◆ supdel_ea()

"bool" supdel_ea ( self,
* args )
Parameters
eaea_t
taguchar

◆ supdel_idx8()

"bool" supdel_idx8 ( self,
"uchar" alt,
"uchar" tag )
Parameters
altuchar
taguchar

◆ supdel_range()

"int" supdel_range ( self,
"nodeidx_t" idx1,
"nodeidx_t" idx2,
"uchar" tag )

Elements in range [idx1, idx2) will be deleted.

Note
: This function can also be used to delete a range of altval elements
Parameters
idx1(C++: nodeidx_t) first element to delete
idx2(C++: nodeidx_t) last element to delete + 1
tag(C++: uchar) tag of array
Returns
: number of deleted elements

◆ supdel_range_idx8()

"int" supdel_range_idx8 ( self,
"uchar" idx1,
"uchar" idx2,
"uchar" tag )
Parameters
idx1(C++: uchar)
idx2(C++: uchar)
tag(C++: uchar)

◆ supfirst()

"nodeidx_t" supfirst ( self,
* args )
Parameters
tag(C++: uchar) tag of array
Returns
: index of first existing element of supval array, BADNODE if supval array is empty

◆ supfirst_idx8()

"nodeidx_t" supfirst_idx8 ( self,
"uchar" tag )
Parameters
taguchar

◆ suplast()

"nodeidx_t" suplast ( self,
* args )
Parameters
tag(C++: uchar) tag of array
Returns
: index of last existing element of supval array, BADNODE if supval array is empty

◆ suplast_idx8()

"nodeidx_t" suplast_idx8 ( self,
"uchar" tag )
Parameters
taguchar

◆ supnext()

"nodeidx_t" supnext ( self,
* args )
Parameters
cur(C++: nodeidx_t) current index
tag(C++: uchar) tag of array
Returns
: index of the next existing element of supval array, BADNODE if no more supval array elements exist

◆ supnext_idx8()

"nodeidx_t" supnext_idx8 ( self,
"uchar" alt,
"uchar" tag )
Parameters
altuchar
taguchar

◆ supprev()

"nodeidx_t" supprev ( self,
* args )
Parameters
cur(C++: nodeidx_t) current index
tag(C++: uchar) tag of array
Returns
: index of the previous existing element of supval array BADNODE if no more supval array elements exist

◆ supprev_idx8()

"nodeidx_t" supprev_idx8 ( self,
"uchar" alt,
"uchar" tag )
Parameters
altuchar
taguchar

◆ supset()

"bool" supset ( self,
* args )
Parameters
alt(C++: nodeidx_t) index into array of supvals
value(C++: const void *) pointer to supval value
tag(C++: uchar) tag of array
Return values
1ok
0should not occur - indicates internal error

◆ supset_ea()

"bool" supset_ea ( self,
* args )
Parameters
eaea_t
valuevoid const *
taguchar

◆ supset_idx8()

"bool" supset_idx8 ( self,
"uchar" alt,
"void const *" value,
"uchar" tag )
Parameters
altuchar
valuevoid const *
taguchar

◆ supshift()

"size_t" supshift ( self,
* args )

Moves the array elements at (from..from+size) to (to..to+size)

Parameters
from(C++: nodeidx_t)
to(C++: nodeidx_t)
size(C++: nodeidx_t)
tag(C++: uchar)
Returns
: number of shifted elements

◆ supstr()

"ssize_t" supstr ( self,
* args )
See also
: supstr(qstring *buf, nodeidx_t alt, uchar tag=stag) const
Parameters
alt(C++: nodeidx_t)
tag(C++: uchar)

◆ supstr_ea()

"ssize_t" supstr_ea ( self,
* args )
Parameters
eaea_t
taguchar

◆ supstr_idx8()

"ssize_t" supstr_idx8 ( self,
"uchar" alt,
"uchar" tag )
Parameters
altuchar
taguchar

◆ supval()

"ssize_t" supval ( self,
* args )

NB: do not use this function to retrieve strings, see supstr()!

Parameters
alt(C++: nodeidx_t) index into array of supvals
tag(C++: uchar) tag of array. Default: stag
Returns
: size of value, -1 if element doesn't exist

◆ supval_ea()

"ssize_t" supval_ea ( self,
* args )
Parameters
eaea_t
taguchar

◆ supval_idx8()

"ssize_t" supval_idx8 ( self,
* args )
Parameters
altuchar
taguchar

◆ valobj()

"ssize_t" valobj ( self,
* args )

Netnode values are arbitrary sized objects with max size is MAXSPECSIZE. NB: do not use this function for strings - see valstr().

Returns
: length of value, -1 if no value present

◆ valstr()

"ssize_t" valstr ( self)
See also
: valstr(qstring *buf) const

◆ value_exists()

"bool" value_exists ( self)

Property Documentation

◆ thisown

thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
static

The documentation for this class was generated from the following file: