[New] Added ByteHelper.invert()
This commit is contained in:
parent
76b2fd2eb2
commit
291480fb6e
|
@ -234,6 +234,10 @@ public class ByteHelper {
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static byte invert(byte x) {
|
||||||
|
return (byte) (x ^ 0xff);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Formats the given byte array to a binary string, separating each byte by a space
|
* Formats the given byte array to a binary string, separating each byte by a space
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue