Libraryless. Click here for Pure Java version (116L/1K).
1 | static byte[] convertIntArrayToByteArray(int... list) { |
2 | if (list == null) null; |
3 | byte[] array = new[list.length]; |
4 | for i over list: |
5 | array[i] = (byte) list[i]; |
6 | ret array; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035684 |
Snippet name: | convertIntArrayToByteArray - take lower 8 bits of each int |
Eternal ID of this version: | #1035684/3 |
Text MD5: | e382bb6179be69685a9c6ec29cda8665 |
Transpilation MD5: | 002fbc1368f159de9590ed85522d4fa1 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-07-06 20:34:44 |
Source code size: | 187 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 132 / 190 |
Version history: | 2 change(s) |
Referenced in: | [show references] |