All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.sciss.serial.impl.Tuple3Writer.scala Maven / Gradle / Ivy

/*
 *  Tuple3Writer.scala
 *  (Serial)
 *
 * Copyright (c) 2011-2021 Hanns Holger Rutz. All rights reserved.
 *
 * This software is published under the GNU Lesser General Public License v2.1+
 *
 *
 * For further information, please contact Hanns Holger Rutz at
 * [email protected]
 */

package de.sciss.serial
package impl

final class Tuple3Writer[A1, A2, A3](peer1: Writer[A1],
                                     peer2: Writer[A2],
                                     peer3: Writer[A3])
  extends Writer[(A1, A2, A3)] {

  def write(tup: (A1, A2, A3), out: DataOutput): Unit = {
    peer1.write(tup._1, out)
    peer2.write(tup._2, out)
    peer3.write(tup._3, out)
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy