You should be able to generate the slice of int64's and in one call flip them all with Write.