MCPcopy Create free account
hub / github.com/CDSecLab/MJXT / longToBytes

Method longToBytes

src/main/java/utils/tool.java:15–22  ·  view source on GitHub ↗
(long num)

Source from the content-addressed store, hash-verified

13 }
14
15 public static byte[] longToBytes(long num) {
16 byte[] byteNum = new byte[8];
17 for (int ix = 0; ix < 8; ++ix) {
18 int offset = 64 - (ix + 1) * 8;
19 byteNum[ix] = (byte) ((num >> offset) & 0xff);
20 }
21 return byteNum;
22 }
23
24 public static boolean Xor_Empty(byte[] xor) {
25 for (int i = 0; i < xor.length; i++) {

Callers 2

Xor8Method · 0.80
getDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected