Libraryless. Click here for Pure Java version (116L/1K).
static byte[] convertIntArrayToByteArray(int... list) { if (list == null) null; byte[] array = new[list.length]; for i over list: array[i] = (byte) list[i]; ret array; }
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: | 363 / 467 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |