https://github.com/sookcha/bytes_string
Manipulate bytestring on Python, without hassle.
https://github.com/sookcha/bytes_string
byte bytearray
Last synced: 7 months ago
JSON representation
Manipulate bytestring on Python, without hassle.
- Host: GitHub
- URL: https://github.com/sookcha/bytes_string
- Owner: sookcha
- Created: 2017-12-19T15:01:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-22T00:15:50.000Z (about 8 years ago)
- Last Synced: 2025-08-15T20:40:28.414Z (7 months ago)
- Topics: byte, bytearray
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bytes_string
Manipulate bytestring on Python, without hassle.
## Usage
bytes = BytesString(64)
offset = 0
bytes.add_integer(100, offset)
offset += 4
bytes.add_integer(100, offset)
offset += 4
bytes.add_integer(0, offset)
bytes.add_string("Good", offset + 1, "ASCII")
offset += BytesString
print(bytes.get_bytearray())