core (MetricsWriter): write data in little endian format