This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# protocol.py | |
# Copyright (c) 2023 fizzdev | |
# MIT License. See LICENSE for more information. | |
import struct | |
# Protocol Data Types | |
def read_byte(data): | |
return struct.unpack('B', data)[0] |