Proxy of C++ bitrange_t class.
|
| | __init__ (self, *args) |
| | init(self, bit_ofs=0, size_in_bits=0) -> bitrange_t
|
| |
| "void" | init (self, *args) |
| | init(self, bit_ofs, size_in_bits) Initialize offset and size to given values.
|
| |
| "void" | reset (self, *args) |
| | reset(self) Make the bitrange empty.
|
| |
| "bool" | empty (self, *args) |
| | empty(self) -> bool Is the bitrange empty?
|
| |
| "uint" | bitoff (self, *args) |
| | bitoff(self) -> uint Get offset of 1st bit.
|
| |
| "uint" | bitsize (self, *args) |
| | bitsize(self) -> uint Get size of the value in bits.
|
| |
| "uint" | bytesize (self, *args) |
| | bytesize(self) -> uint Size of the value in bytes.
|
| |
| "uint64" | mask64 (self, *args) |
| | mask64(self) -> uint64 Convert to mask of 64 bits.
|
| |
| "bool" | has_common (self, *args) |
| | has_common(self, r) -> bool Does have common bits with another bitrange?
|
| |
| "bool" | apply_mask (self, *args) |
| | apply_mask(self, subrange) -> bool Apply mask to a bitrange
|
| |
| "void" | intersect (self, *args) |
| | intersect(self, r) Intersect two ranges.
|
| |
| "void" | create_union (self, *args) |
| | create_union(self, r) Create union of 2 ranges including the hole between them.
|
| |
| "bool" | sub (self, *args) |
| | sub(self, r) -> bool Subtract a bitrange.
|
| |
| "void" | shift_down (self, *args) |
| | shift_down(self, cnt) Shift range down (left)
|
| |
| "void" | shift_up (self, *args) |
| | shift_up(self, cnt) Shift range up (right)
|
| |
| "bool" | extract (self, *args) |
| | extract(self, src, is_mf) -> bool
|
| |
| "bool" | inject (self, *args) |
| | inject(self, dst, src, is_mf) -> bool
|
| |
| "bool" | __eq__ (self, *args) |
| | eq(self, r) -> bool
|
| |
| "bool" | __ne__ (self, *args) |
| | ne(self, r) -> bool
|
| |
| "bool" | __lt__ (self, *args) |
| | lt(self, r) -> bool
|
| |
| "bool" | __gt__ (self, *args) |
| | gt(self, r) -> bool
|
| |
| "bool" | __le__ (self, *args) |
| | le(self, r) -> bool
|
| |
| "bool" | __ge__ (self, *args) |
| | ge(self, r) -> bool
|
| |
| "int" | compare (self, *args) |
| | compare(self, r) -> int
|
| |
| "qstring" | __str__ (self, *args) |
| | str(self) -> qstring
|
| |
|
| | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") |
| |
◆ __init__()
| __init__ |
( |
| self, |
|
|
* | args ) |
- Parameters
-
| bit_ofs | uint16 |
| size_in_bits | uint16 |
◆ __eq__()
| "bool" __eq__ |
( |
| self, |
|
|
* | args ) |
◆ __ge__()
| "bool" __ge__ |
( |
| self, |
|
|
* | args ) |
◆ __gt__()
| "bool" __gt__ |
( |
| self, |
|
|
* | args ) |
◆ __le__()
| "bool" __le__ |
( |
| self, |
|
|
* | args ) |
◆ __lt__()
| "bool" __lt__ |
( |
| self, |
|
|
* | args ) |
◆ __ne__()
| "bool" __ne__ |
( |
| self, |
|
|
* | args ) |
◆ __str__()
| "qstring" __str__ |
( |
| self, |
|
|
* | args ) |
◆ apply_mask()
| "bool" apply_mask |
( |
| self, |
|
|
* | args ) |
- Parameters
-
| subrange | (C++: const bitrange_t &) range inside the main bitrange to keep After this operation the main bitrange will be truncated to have only the bits that are specified by subrange. Example: [off=8,nbits=4], subrange[off=1,nbits=2] => [off=9,nbits=2] |
- Returns
- : success
◆ bitoff()
| "uint" bitoff |
( |
| self, |
|
|
* | args ) |
◆ bitsize()
| "uint" bitsize |
( |
| self, |
|
|
* | args ) |
◆ bytesize()
| "uint" bytesize |
( |
| self, |
|
|
* | args ) |
◆ compare()
| "int" compare |
( |
| self, |
|
|
* | args ) |
◆ create_union()
| "void" create_union |
( |
| self, |
|
|
* | args ) |
◆ empty()
| "bool" empty |
( |
| self, |
|
|
* | args ) |
◆ extract()
| "bool" extract |
( |
| self, |
|
|
* | args ) |
- Parameters
-
| src | void const * |
| is_mf | bool |
◆ has_common()
| "bool" has_common |
( |
| self, |
|
|
* | args ) |
◆ init()
| "void" init |
( |
| self, |
|
|
* | args ) |
- Parameters
-
| bit_ofs | (C++: uint16) |
| size_in_bits | (C++: uint16) |
◆ inject()
| "bool" inject |
( |
| self, |
|
|
* | args ) |
- Parameters
-
| dst | void * |
| src | bytevec_t const & |
| is_mf | bool |
◆ intersect()
| "void" intersect |
( |
| self, |
|
|
* | args ) |
◆ mask64()
| "uint64" mask64 |
( |
| self, |
|
|
* | args ) |
◆ reset()
| "void" reset |
( |
| self, |
|
|
* | args ) |
◆ shift_down()
| "void" shift_down |
( |
| self, |
|
|
* | args ) |
◆ shift_up()
| "void" shift_up |
( |
| self, |
|
|
* | args ) |
◆ sub()
| "bool" sub |
( |
| self, |
|
|
* | args ) |
◆ 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: