Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1033949 // intBufferPut

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5040L/28K).

// fills with zeros
svoid intBufferPut(IntBuffer buf, int idx, int value) {
  if (buf == null) ret;
  int toAdd = idx-buf.size();
  while (toAdd-- >= 0) buf.add(0);
  buf.set(idx, value);
}

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: 137 / 195
Referenced in: [show references]