- Notifications
You must be signed in to change notification settings - Fork7
unsigned support for Kotlin via boxed types and unsigned operators
License
NotificationsYou must be signed in to change notification settings
kotlin-graphics/kotlin-unsigned
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Unsigned operators and boxed types (U8,U16,U32 andU64) for unsigned support.
To have a quick idea what this library offers, take a look at the tests
- this project uses classes instead inline classes. To address this in critical scenarios where allocations may have a sensitive impact, primitive variable holding the unsignedtype value is a
var, so you can re-use the same instance over and over again - unsigned types extend
Numberabstract 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
shlandshrforUbyteandUshort - there is no automatic padding to integer for unsigned bytes and shorts, so if you add an
Ushortto anotherUshortyou get anUshort(and not anUint)
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 bymary
Don't hesitate to contribute to the project by submittingissues orpull requests for bugs and features. Any feedback is welcome atelect86@gmail.com.
- inspired byjOOU
About
unsigned support for Kotlin via boxed types and unsigned operators
Topics
Resources
License
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors6
Uh oh!
There was an error while loading.Please reload this page.
