Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

Multiplatform Base64 library #90

Open
qwwdfsad wants to merge 1 commit into Kotlin:master
base: master
Choose a base branch
Loading
from qwwdfsad:master
Open

Conversation

Copy link
Member

@qwwdfsad qwwdfsad commented Oct 3, 2018

No description provided.

martinbonnin and tritus reacted with thumbs up emoji
Copy link
Member Author

qwwdfsad commented Oct 3, 2018

Copy link

StefMa commented Dec 16, 2019

Any reasons why this isn't an official library of jetbrains?
Or are there plans to extract it and publish it?

Cause it is very helpful. :)

penn5, mdivkovic-speech, rocketraman, and frogggias reacted with thumbs up emoji

while (index < src.size) {
val symbolsLeft = src.size - index
val padSize = if (symbolsLeft >= 3) 0 else (3 - symbolsLeft) * 8 / 6
val chunk = (src.getOrZero(index) shl 16) or (src.getOrZero(index + 1) shl 8) or src.getOrZero(index + 2)
Copy link

Choose a reason for hiding this comment

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

I think there is a mistake here, it should be:

 val chunk = (getOrZero(index) and 0xff shl 16) or
 (getOrZero(index + 1) and 0xff shl 8) or
 (getOrZero(index + 2) and 0xff)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Reviewers
1 more reviewer

@sav007 sav007 sav007 left review comments

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /