def encodeUleb128(value: int) -> bytes:
	"""Encodes the given value in Uleb128 format.

	Args:
		value: The value to encode.

	Returns:
		The encoded number
	"""

	if value == 0:
		return b"\x00"

	data = bytearray()

	while value != 0:
		currentSlice = value & 0x7f
		value >>= 7

		if value != 0:
			currentSlice |= 0x80

		data.append(currentSlice)

	return bytes(data)