Skip to content

Commit

Permalink
usage
Browse files Browse the repository at this point in the history
  • Loading branch information
patatetom committed Sep 10, 2021
1 parent c22667c commit f3d0be5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,17 @@ False
[False, False, False, False]
>>> reader.readSector(60, '102030102030')
['0BDA3FF0:60:01010101010101010101010101010101', '0BDA3FF0:61:10101010101010101010101010101010', '0BDA3FF0:62:00000000000000000000000000000000', '0BDA3FF0:63:000000000000FF078000FFFFFFFFFFFF']

>>> # reset a sector
>>> reader.resetSector(60, '123456'*2)
False
>>> reader.resetSector(60, '102030'*2)
['0BDA3FF0:60:00000000000000000000000000000000', '0BDA3FF0:61:00000000000000000000000000000000', '0BDA3FF0:62:00000000000000000000000000000000', '0BDA3FF0:60:[FFFFFFFFFFFF]']
>>> # reset a block
>>> reader.readBlock(2)
'0BDA3FF0:2:1234567890ABCDEF1234567890ABCDEF'
>>> reader.resetBlock(2)
'0BDA3FF0:2:00000000000000000000000000000000'
```


Expand Down

0 comments on commit f3d0be5

Please sign in to comment.