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

10
LINES

< > BotCompany Repo | #1036142 // longArrayFromBytes - big-endian

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

Transpiled version (156L) is out of date.

static long[] longArrayFromBytes(byte[] a) {
  ret longArrayFromBytes(a, 0, l(a));
}

static long[] longArrayFromBytes(byte[] a, int from, int to) {
  long[] b = new[(to-from)/8];
  for (int i = 0; i < b.length; i++)
    b[i] = longFromBytes_bigEndian(a, from+i*8);
  ret b;
}

Author comment

Began life as a copy of #1007028

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1036142
Snippet name: longArrayFromBytes - big-endian
Eternal ID of this version: #1036142/4
Text MD5: f0bb7137a1586db77d9f18f687f11ed2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-09-28 19:23:24
Source code size: 285 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 149 / 207
Version history: 3 change(s)
Referenced in: [show references]