Libraryless. Click here for Pure Java version (5162L/28K).
1 | static ItIt<byte[]> byteArrayChunksIterator(byte[] l, int chunkSize) { |
2 | ret iteratorFromFunction(new IF0<byte[]>() { |
3 | int n = l(l), i; |
4 | |
5 | public byte[] get() { |
6 | if (i >= n) null; |
7 | i += chunkSize; |
8 | ret subByteArray(l, i-chunkSize, i); |
9 | } |
10 | }); |
11 | } |
Began life as a copy of #1026949
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034330 |
Snippet name: | byteArrayChunksIterator |
Eternal ID of this version: | #1034330/1 |
Text MD5: | 3b69439aff7c1236f01bafa80c61fa86 |
Transpilation MD5: | 46b01cdfbf4b49f813d5439cb14e947a |
Author: | stefan |
Category: | javax / audio |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-02 20:59:46 |
Source code size: | 282 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 139 / 197 |
Referenced in: | [show references] |