Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1006142 // bitsFullChunks

JavaX fragment (include)

static L<Bits> bitsFullChunks(Bits bits, int width) {
  int n = bits.n/width; // leave last chunk if too small
  new L<Bits> l;
  for i to n:
    l.add(subBits(bits, i*width, (i+1)*width));
  ret l;
}

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: #1006142
Snippet name: bitsFullChunks
Eternal ID of this version: #1006142/1
Text MD5: c757e0a559a1f2a497ecc7486da583a1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-21 16:14:57
Source code size: 208 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 364 / 393
Referenced in: [show references]