Libraryless. Click here for Pure Java version (3781L/22K).
1 | static byte[] byteListToArray(LByte l) {
|
2 | if (l == null) null; |
3 | int n = l(l), i = 0; |
4 | byte[] a = new[n]; |
5 | for (x : l) |
6 | a[i++] = x; |
7 | ret a; |
8 | } |
Began life as a copy of #1018464
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1033141 |
| Snippet name: | byteListToArray |
| Eternal ID of this version: | #1033141/1 |
| Text MD5: | 8189ce16248ba02e0ac9418753029c95 |
| Transpilation MD5: | c49a9dc1a320f2dfef44c4f42a224215 |
| Author: | stefan |
| Category: | javax / io |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-15 18:00:32 |
| Source code size: | 155 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 392 / 513 |
| Referenced in: | [show references] |