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

com.ochafik.lang.jnaerator.runtime.scala.ScalaJNA.scala.part Maven / Gradle / Ivy

The newest version!

trait ScalaJNA {
	import com.sun.jna._;
	import com.sun.jna.ptr._;

	implicit def Long2NativeLong(v: Long) = { new NativeLong(v); }
	implicit def Int2NativeLong(v: Int) = { new NativeLong(v); }
	implicit def NativeLong2Long(v: NativeLong) = { v.longValue() }
	implicit def NativeLong2Int(v: NativeLong) = { v.intValue() }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy