def _pad_with_nulls(data, len_):
    """ Pad string with null bytes.

    Parameters
    ----------
    data : str/bytes
        the string/bytes to pad
    len_ : int
        the final desired length
    """
    return data + (b'\x00' * (len_ - len(data)))