import struct


def _decode_int(s):
    """
    Decodes the 4-byte strings representing a 4 byte big endian integer
    into an int.
    :param s: A 4 byte string representing an integer
    :return: The integer the string passed represents
    """
    return struct.unpack('>i', s)[0]