func write()

in Sources/TwitterApacheThrift/MutableThriftBinary.swift [91:103]


    func write(_ value: Double) {
        let bitValue = value.bitPattern
        var buffer = [UInt8](repeating: 0, count: 8)
        buffer[0] = UInt8(0xFF & (bitValue >> 56))
        buffer[1] = UInt8(0xFF & (bitValue >> 48))
        buffer[2] = UInt8(0xFF & (bitValue >> 40))
        buffer[3] = UInt8(0xFF & (bitValue >> 32))
        buffer[4] = UInt8(0xFF & (bitValue >> 24))
        buffer[5] = UInt8(0xFF & (bitValue >> 16))
        buffer[6] = UInt8(0xFF & (bitValue >> 8))
        buffer[7] = UInt8(0xFF & bitValue)
        insert(bytes: buffer)
    }