# Path: constants/dataTypes.py



from constants import dataTypes
import struct
"""That's basically packetHelper.py from pep.py, with some changes to make it work with replay files."""


def uleb128Encode(num):
	arr = bytearray()
	length = 0
	if num == 0:
		return bytearray(b"\x00")
	while num > 0:
		arr.append(num & 127)
		num >>= 7
		if num != 0:
			arr[length] |= 128
		length+=1
	return arr

def packData(__data, __dataType):
	data = bytes()
	pack = True
	packType = "<B"

# Path: constants/dataTypes.py



# Path: helpers/binaryHelper.py
from constants import dataTypes
import struct

"""That's basically packetHelper.py from pep.py, with some changes to make it work with replay files."""


def uleb128Encode(num):
	arr = bytearray()
	length = 0
	if num == 0:
		return bytearray(b"\x00")
	while num > 0:
		arr.append(num & 127)
		num >>= 7
		if num != 0:
			arr[length] |= 128
		length+=1
	return arr

def packData(__data, __dataType):
	data = bytes()
	pack = True
	packType = "<B"

	if __dataType == dataTypes.bbytes: