Transpiled version (2488L) is out of date.
1 | svoid bytesToChars_bigEndian(byte[] a, char[] b) {
|
2 | int n = l(a)/2; |
3 | for i to n: |
4 | b[i] = (char) (((int) a[i*2]) << 8 | ((int) a[i*2+1]) & 0xFF); |
5 | } |
6 | |
7 | static char[] bytesToChars_bigEndian(byte[] a) {
|
8 | if (a == null) null; |
9 | char[] b = new[a.length/2]; |
10 | bytesToChars_bigEndian(a, b); |
11 | ret b; |
12 | } |
Began life as a copy of #1008001
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1029394 |
| Snippet name: | bytesToChars_bigEndian |
| Eternal ID of this version: | #1029394/4 |
| Text MD5: | b3cee3479fbc7eb3afab2bc38738bd78 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-08-05 15:06:46 |
| Source code size: | 308 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 495 / 627 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |