Я знаю, как это сделать в java (см. здесь), но я не смог найти быстрый эквивалент для java ByteBuffer и, следовательно, его .putDouble(double значение).
В принципе, я ищу такую функцию:func doubleToByteArray(value: Double) -> [UInt8]? {
. . .
}
doubleToByteArray(1729.1729) // should return [64, 155, 4, 177, 12, 178, 149, 234]