Libraryless. Click here for Pure Java version (5040L/28K).
1 | // fills with zeros |
2 | svoid intBufferPut(IntBuffer buf, int idx, int value) { |
3 | if (buf == null) ret; |
4 | int toAdd = idx-buf.size(); |
5 | while (toAdd-- >= 0) buf.add(0); |
6 | buf.set(idx, value); |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033949 |
Snippet name: | intBufferPut |
Eternal ID of this version: | #1033949/1 |
Text MD5: | cec35548d643e5878e87633a9c3f22d2 |
Transpilation MD5: | 32c334ce6667d95b7a41525dc4122ef4 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-14 22:02:44 |
Source code size: | 195 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 139 / 198 |
Referenced in: | [show references] |