annotate doc/utils.rst @ 310:e95e5572cd6d

Added utils doc page
author Windel Bouwman
date Fri, 13 Dec 2013 14:10:10 +0100
parents
children 8d07a4254f04
rev   line source
310
e95e5572cd6d Added utils doc page
Windel Bouwman
parents:
diff changeset
1
e95e5572cd6d Added utils doc page
Windel Bouwman
parents:
diff changeset
2 Utilities
e95e5572cd6d Added utils doc page
Windel Bouwman
parents:
diff changeset
3 =========
e95e5572cd6d Added utils doc page
Windel Bouwman
parents:
diff changeset
4
e95e5572cd6d Added utils doc page
Windel Bouwman
parents:
diff changeset
5 Hexfile manipulation
e95e5572cd6d Added utils doc page
Windel Bouwman
parents:
diff changeset
6 --------------------
e95e5572cd6d Added utils doc page
Windel Bouwman
parents:
diff changeset
7
e95e5572cd6d Added utils doc page
Windel Bouwman
parents:
diff changeset
8
e95e5572cd6d Added utils doc page
Windel Bouwman
parents:
diff changeset
9 .. autoclass:: utils.HexFile
e95e5572cd6d Added utils doc page
Windel Bouwman
parents:
diff changeset
10
e95e5572cd6d Added utils doc page
Windel Bouwman
parents:
diff changeset
11
e95e5572cd6d Added utils doc page
Windel Bouwman
parents:
diff changeset
12 >>> from utils import HexFile
e95e5572cd6d Added utils doc page
Windel Bouwman
parents:
diff changeset
13 >>> h = HexFile()
e95e5572cd6d Added utils doc page
Windel Bouwman
parents:
diff changeset
14 >>> h.dump()
e95e5572cd6d Added utils doc page
Windel Bouwman
parents:
diff changeset
15 Hexfile containing 0 bytes
e95e5572cd6d Added utils doc page
Windel Bouwman
parents:
diff changeset
16 >>> h.addRegion(0, bytes([1,2,3]))
e95e5572cd6d Added utils doc page
Windel Bouwman
parents:
diff changeset
17 >>> h
e95e5572cd6d Added utils doc page
Windel Bouwman
parents:
diff changeset
18 Hexfile containing 3 bytes
e95e5572cd6d Added utils doc page
Windel Bouwman
parents:
diff changeset
19
e95e5572cd6d Added utils doc page
Windel Bouwman
parents:
diff changeset
20