func write()

in Sources/TwitterApacheThrift/MutableThriftBinary.swift [76:87]


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