~martijnbraam/bare-py

319e1b2fb9c909de9ee4a86ffabf96f276298e5c — Martijn Braam 8 months ago 22a9063
Added debugger info
1 files changed, 14 insertions(+), 0 deletions(-)

M README.md
M README.md => README.md +14 -0
@@ 120,4 120,18 @@ with open('address.bin', 'rb') as handle:

address = Address.unpack(raw)
print(address.city)
```

### Debugging messages

The bare-dump command can be used to decode the binary messages with a supplied schema. It will output the 
bytes annotated with the information from the schema and the decoded data.

```shell-session
$ bare-dump cursor.bare Cursor --base64 MgGolKbTCwA=
struct Cursor
|count                    32                        INT = 25
|next                     01                        union, tag = 1 (INT)
||INT                     A8 94 A6 D3 0B            INT = 1563739412
|search                   00                        String =
```
\ No newline at end of file