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

4
LINES

< > BotCompany Repo | #1035807 // test_intFromBytes_bigEndian

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

Transpiled version (9199L) is out of date.

svoid test_intFromBytes_bigEndian() {
  assertEqualsVerbose(0x01030507, intFromBytes_bigEndian(new byte[] { 1, 3, 5, 7 }, 0));
  assertEqualsVerbose(0xFFFDFBF9, intFromBytes_bigEndian(new byte[] { -1, -3, -5, -7 }, 0));
}

Author comment

Began life as a copy of #1035800

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1035807
Snippet name: test_intFromBytes_bigEndian
Eternal ID of this version: #1035807/2
Text MD5: fbb79c50114e46ed4279a6ce86c0b3c7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-07-29 21:39:40
Source code size: 224 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 117 / 166
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1035808 - test_longFromBytes_bigEndian