Product Promotion
0x5a.live
for different kinds of informations and explorations.
GitHub - kotlin-graphics/kotlin-unsigned: unsigned support for Kotlin via boxed types and unsigned operators
unsigned support for Kotlin via boxed types and unsigned operators - kotlin-graphics/kotlin-unsigned
Visit SiteGitHub - kotlin-graphics/kotlin-unsigned: unsigned support for Kotlin via boxed types and unsigned operators
unsigned support for Kotlin via boxed types and unsigned operators - kotlin-graphics/kotlin-unsigned
Powered by 0x5a.live ๐
kotlin-unsigned
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
Differences with kotlin stdlib:
- this project uses classes instead inline classes. To address this in critical scenarios where allocations may have a sensitive impact, primitive variable holding the unsigned
type value is a
var
, so you can re-use the same instance over and over again - unsigned types extend
Number
abstract class - automatic conversions
- it is possible to get a string representation with a specific format by calling the corresponding
toString(format: String)
method, eg:ubyte.format("%08x")
- all the unsigned types implement all the function, including
shl
andshr
forUbyte
andUshort
- there is no automatic padding to integer for unsigned bytes and shorts, so if you add an
Ushort
to anotherUshort
you get anUshort
(and not anUint
)
Install:
mary
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")
}
maven central
dependencies {
implementation("io.github.kotlin-graphics:kotlin-unsigned:3.3.32")
}
You can find more info by mary
Contributions:
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].
Credits:
- inspired by jOOU
Kotlin Resources
are all listed below.
GitHub - BenWoodworth/knbt: Kotlin NBT library for kotlinx.serialization
resource
~/github.com
resource
GitHub - brianmadden/krawler: A web crawling framework written in Kotlin
resource
~/github.com
resource
GitHub - OxygenCobalt/Auxio: A simple, rational music player for android
resource
~/github.com
resource
GitHub - eriksencosta/math-percentage: Percentage calculations made easy
resource
~/github.com
resource
GitHub - ctripcorp/mmkv-kotlin: A Kotlin Multiplatform porting for MMKV.
resource
~/github.com
resource
GitHub - Litote/kmongo: [deprecated] KMongo - a Kotlin toolkit for Mongo
resource
~/github.com
resource
Test-Driven Development Tutorial for Android: Getting Started
resource
~/www.raywenderlich.com
resource
GitHub - jacinpoz/rxaerospike: RxJava2 wrapper for aerospike-client-java
resource
~/github.com
resource
GitHub - pedrovgs/KotlinSnapshot: Snapshot Testing framework for Kotlin.
resource
~/github.com
resource
GitHub - hankdavidson/ktime: kotlin extensions to the java8 time library
resource
~/github.com
resource
GitHub - ziggy42/Blum: A simple android Twitter client written in Kotlin
resource
~/github.com
resource
Made with โค๏ธ
to provide different kinds of informations and resources.