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

6
LINES

< > BotCompany Repo | #1034926 // cloneByteArray

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

Libraryless. Click here for Pure Java version (33L/1K).

static byte[] cloneByteArray(byte[] a) {
  if (a == null) null;
  byte[] b = new[a.length];
  System.arraycopy(a, 0, b, 0, a.length);
  ret b;
}

Author comment

Began life as a copy of #1003162

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034926
Snippet name: cloneByteArray
Eternal ID of this version: #1034926/1
Text MD5: 2ab4d50327bcb1ec05cc8a12239a2400
Transpilation MD5: a55db04a3c15bf6079ca2265492b42ef
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-15 20:23:32
Source code size: 149 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 69 / 103
Referenced in: [show references]