Libraryless. Click here for Pure Java version (10025L/55K).
static L<Byte> wrapByteArrayAsList (byte[] l) { ret new RandomAccessAbstractList<Byte>() { public int size() { ret l.length; } public Byte get(int i) { ret l[i]; } public Byte set(int i, Byte val) { Byte a = l[i]; l[i] = val; ret a; } }; }
Began life as a copy of #1029408
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1035682 |
| Snippet name: | wrapByteArrayAsList - mutable |
| Eternal ID of this version: | #1035682/1 |
| Text MD5: | d74ce1ce48aeffe95f1885a6fbc1b7e8 |
| Transpilation MD5: | 366e77eb7c0aa365715e9a2a848a3ae0 |
| 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:22:35 |
| Source code size: | 287 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 360 / 448 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1036162 - wrapLongArrayAsList - mutable |