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

10
LINES

< > BotCompany Repo | #1033226 // intListToByteArray_littleEndian

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3798L/22K).

1  
static byte[] intListToByteArray_littleEndian(L<Int> l) {
2  
  if (l == null) null;
3  
  int n1 = l(l), n = n1*4;
4  
  byte[] a = new[n];
5  
  
6  
  for i to n1:
7  
    intToBytes_inArray_littleEndian(l.get(i), a, i*4);
8  
  
9  
  ret a;
10  
}

Author comment

Began life as a copy of #1033118

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033226
Snippet name: intListToByteArray_littleEndian
Eternal ID of this version: #1033226/1
Text MD5: 8d6b5fe20ad753c37ed0a94f7e1be881
Transpilation MD5: 23ac13b83d654c217a71a087196b16f3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-16 06:27:14
Source code size: 224 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 153 / 228
Referenced in: [show references]