No need to call binary.Write() again, the data is already in big endian order. Just use the regular Write() method