Skip to content

Add unsigned numbers extensions.#1779

Open
MohammedKHC wants to merge 2 commits intosquare:masterfrom
MohammedKHC:unsigned
Open

Add unsigned numbers extensions.#1779
MohammedKHC wants to merge 2 commits intosquare:masterfrom
MohammedKHC:unsigned

Conversation

@MohammedKHC
Copy link
Contributor

Closes #513

MohammedKHC and others added 2 commits February 12, 2026 12:41
Co-authored-by: Brian Norman <brian_norman@atavium.com>
@MohammedKHC
Copy link
Contributor Author

Sorry I forgot to run ./gradlew apiDump.

Comment on lines +54 to +60
public static final fun writeUByte-EK-6454 (Lokio/BufferedSink;B)Lokio/BufferedSink;
public static final fun writeUInt-Qn1smSk (Lokio/BufferedSink;I)Lokio/BufferedSink;
public static final fun writeUIntLe-Qn1smSk (Lokio/BufferedSink;I)Lokio/BufferedSink;
public static final fun writeULong-2TYgG_w (Lokio/BufferedSink;J)Lokio/BufferedSink;
public static final fun writeULongLe-2TYgG_w (Lokio/BufferedSink;J)Lokio/BufferedSink;
public static final fun writeUShort-i8woANY (Lokio/BufferedSink;S)Lokio/BufferedSink;
public static final fun writeUShortLe-i8woANY (Lokio/BufferedSink;S)Lokio/BufferedSink;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use @JvmName for these methods??
I don't think that the api should contain this..
Or is this alright??

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The mangling seems to be stable
https://kotlinlang.org/docs/inline-classes.html#mangling

functions using inline classes are mangled by adding some stable hashcode to the function name.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole type is already invisible to Java due to the hyphen. Otherwise this is public API we have to track.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BufferedSource.readUByte etc.

2 participants