def readSizeBytes(string):
    """
    Reads the 4 byte size-string and returns the size as integer.

    :param string: 4 byte size-string
    :return: integer
    """
    assert len(string) == 4
    return int(string.encode('hex'), 16)