def change_field(
    array, start: int, stop: int, content: list, filler: bytes = b'\x00',
):
    """ Change the content of a .eeg file field in memory.

    Args:
        array: is the header of the .eeg file.
        start: is the starting index of where to change the field.
        stop: is the stoping index of where to change the field.
        content: is the content to write in the field.
        filler: is the filling character used in the field.
    """
    for index in range(start, stop):
        if index - start < len(content):
            array[index] = content[index - start]
        else:
            array[index] = filler

    return stop - start >= len(content)