static bool[] boolArrayFromBytes(byte[] a, int n) { bool[] b = new bool[n]; int m = min(n, l(a)*8); for (int i = 0; i < m; i++) b[i] = (a[i/8] & 1 << (i & 7)) != 0; ret b; }
Began life as a copy of #1004901
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004903 |
Snippet name: | boolArrayFromBytes |
Eternal ID of this version: | #1004903/1 |
Text MD5: | 69fe0573f279a3dd28d29054dbd1fe52 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-09-15 23:26:24 |
Source code size: | 191 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 661 / 658 |
Referenced in: | #1004987 - intArrayFromBytes - big-endian #1006654 - Standard functions list 2 (LIVE, continuation of #761) |