Browse Source

Struct

pull/9/head
Jure Šorn 5 years ago
parent
commit
189db88cd1
1 changed files with 0 additions and 6 deletions
  1. 6
      README.md

6
README.md

@ -880,14 +880,8 @@ Struct
```python ```python
>>> pack('hhl', 1, 2, 3) >>> pack('hhl', 1, 2, 3)
b'\x00\x01\x00\x02\x00\x00\x00\x03' b'\x00\x01\x00\x02\x00\x00\x00\x03'
```
```python
>>> unpack('hhl', b'\x00\x01\x00\x02\x00\x00\x00\x03') >>> unpack('hhl', b'\x00\x01\x00\x02\x00\x00\x00\x03')
(1, 2, 3) (1, 2, 3)
```
```python
>>> calcsize('hhl') >>> calcsize('hhl')
8 8
``` ```

Loading…
Cancel
Save