Libraryless. Click here for Pure Java version (2868L/18K).
1 | svoid sortIntBuffer(IntBuffer buf, Comparator<Int> comparator) { |
2 | if (buf == null) ret; |
3 | Int[] a = intArrayToBoxed(buf.data, 0, buf.size); |
4 | Arrays.sort(a, comparator); |
5 | for i over a: |
6 | buf.set(i, a[i]); |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1029360 |
Snippet name: | sortIntBuffer |
Eternal ID of this version: | #1029360/2 |
Text MD5: | 809b33879c6883f787dfe55ae790a055 |
Transpilation MD5: | cbf189c023d901c45b32e45f440c4d2f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-08-02 16:23:50 |
Source code size: | 216 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 173 / 248 |
Version history: | 1 change(s) |
Referenced in: | [show references] |