Unsigned operators and boxed types (Ubyte
, Uint
, Ulong
and Ushort
) for unsigned support.
To have a quick idea what this library offers, take a look at the tests
-
Add it in your root build.gradle at the end of repositories:
allprojects { repositories { ... maven { url 'https://jitpack.io' } // should be the last entry } }
-
Add the dependency
dependencies { compile 'com.github.kotlin-graphics:kotlin-unsigned:v2.1' }
Android compatible, sources compiled with java 1.7.
All unsigned methods available for int
s and long
s on java 1.8 have been reported here.
These are offered directly on the corresponding Int
and Long
Kotlin primitives (with infix
too)
Don't hesitate to contribute to the project by submitting issues or pull requests for bugs and features. Any feedback is welcome at [email protected].
- inspired by jOOU