Home | Trees | Index | Help |
|
---|
Package sulley :: Module primitives :: Class bit_field |
|
object
--+ |base_primitive
--+ | bit_field
byte
,
dword
,
qword
,
word
Method Summary | |
---|---|
The bit field primitive represents a number of variable length and is used to define all other integer types. | |
Add the supplied integer and border cases to the integer fuzz heuristics library. | |
Render the primitive. | |
String |
Convert a number to a binary string. |
Integer |
Convert a binary string to a decimal number. |
Inherited from base_primitive | |
Integer |
Exhaust the possible mutations for this primitive. |
Boolean |
Mutate the primitive by stepping through the fuzz library, return False on completion. |
Integer |
Calculate and return the total number of mutations for this individual primitive. |
Reset this primitive to the starting mutation state. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Method Details |
---|
__init__(self,
value,
width,
max_num=None,
endian='<',
format='binary',
signed=False,
full_range=False,
fuzzable=True,
name=None)
The bit field primitive represents a number of variable length and
is used to define all other integer types.
|
add_integer_boundaries(self, integer)Add the supplied integer and border cases to the integer fuzz heuristics library.
|
render(self)Render the primitive.
|
to_binary(self, number=None, bit_count=None)Convert a number to a binary string.
|
to_decimal(self, binary)Convert a binary string to a decimal number.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Jul 27 17:40:03 2007 | http://epydoc.sf.net |