Browse Source

Bytes and Struct

pull/3/head
Jure Šorn 6 years ago
parent
commit
3c0546b2df
1 changed files with 1 additions and 0 deletions
  1. 1
      README.md

1
README.md

@ -642,6 +642,7 @@ Bytes
### Encode ### Encode
```python ```python
<Bytes> = b'<str>' <Bytes> = b'<str>'
<Bytes> = <str>.encode(encoding='utf-8')
<Bytes> = <int>.to_bytes(<length>, byteorder='big|small', signed=False) <Bytes> = <int>.to_bytes(<length>, byteorder='big|small', signed=False)
<Bytes> = bytes.fromhex(<hex>) <Bytes> = bytes.fromhex(<hex>)
``` ```

Loading…
Cancel
Save