unsigned support for Kotlin via boxed types and unsigned operators
Unsigned operators and boxed types (U8
, U16
, U32
and U64
) for unsigned support.
To have a quick idea what this library offers, take a look at the tests)
var
, so you can re-use the same instance over and over againNumber
abstract classtoString(format: String)
method, eg: ubyte.format("%08x")
shl
and shr
for Ubyte
and Ushort
Ushort
to another Ushort
you get an Ushort
(and not an Uint
)
repositories {
maven("https://raw.githubusercontent.com/kotlin-graphics/mary/master")
// or with magik plugin
//github("kotlin-graphics/mary")
}
dependencies {
implementation("kotlin.graphics:unsigned:3.3.32")
}
dependencies {
implementation("io.github.kotlin-graphics:kotlin-unsigned:3.3.32")
}
You can find more info by mary
Don’t hesitate to contribute to the project by submitting issues or pull requests for bugs and features. Any feedback is welcome at elect86@gmail.com"">elect86@gmail.com.