Libraryless. Click here for Pure Java version (33L/1K).
1 | static byte[] cloneByteArray(byte[] a) {
|
2 | if (a == null) null; |
3 | byte[] b = new[a.length]; |
4 | System.arraycopy(a, 0, b, 0, a.length); |
5 | ret b; |
6 | } |
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: | 423 / 546 |
| Referenced in: | [show references] |