mrcrowbar.checks module

class mrcrowbar.checks.Check(raise_exception=False)[source]

Bases: object

check_buffer(buffer, parent=None)[source]
get_end_offset(parent=None)[source]

Return the end offset of where the Check inspects the Block.

get_fields()[source]

Return None, a single field, or a dictionary of Fields embedded within the Check.

get_size(parent=None)[source]

Return the size of the checked data (in bytes).

get_start_offset(parent=None)[source]

Return the start offset of where the Check inspects the Block.

repr = None
update_buffer(buffer, parent=None)[source]
exception mrcrowbar.checks.CheckException[source]

Bases: Exception

class mrcrowbar.checks.Const(field, value, *args, **kwargs)[source]

Bases: Check

check_buffer(buffer, parent=None)[source]
get_fields()[source]

Return None, a single field, or a dictionary of Fields embedded within the Check.

get_size(parent=None)[source]

Return the size of the checked data (in bytes).

get_start_offset(parent=None)[source]

Return the start offset of where the Check inspects the Block.

property repr

The type of the None singleton.

update_buffer(buffer, parent=None)[source]
class mrcrowbar.checks.Updater(source, target, *args, **kwargs)[source]

Bases: Check

property repr

The type of the None singleton.

update_buffer(buffer, parent=None)[source]