Libraryless. Click here for Pure Java version (2868L/18K).
svoid sortIntBuffer(IntBuffer buf, Comparator<Int> comparator) { if (buf == null) ret; Int[] a = intArrayToBoxed(buf.data, 0, buf.size); Arrays.sort(a, comparator); for i over a: buf.set(i, a[i]); }
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: | 382 / 493 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |