| 1 | static L<byte[]> splitArrayRegularly(byte[] a, int chunkSize) {
 | 
| 2 | assertTrue(chunkSize > 0); | 
| 3 | L<byte[]> l = new L; | 
| 4 | int i = 0; | 
| 5 |   while (i < l(a)) {
 | 
| 6 | l.add(subArray(a, i, i+chunkSize)); | 
| 7 | i += chunkSize; | 
| 8 | } | 
| 9 | ret l; | 
| 10 | } | 
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1007865 | 
| Snippet name: | splitArrayRegularly | 
| Eternal ID of this version: | #1007865/4 | 
| Text MD5: | f9fc3aea7182ec3110287cbba77233f6 | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2017-04-12 13:59:31 | 
| Source code size: | 233 bytes / 10 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 675 / 694 | 
| Version history: | 3 change(s) | 
| Referenced in: | [show references] |