File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/main/java/at/favre/lib/bytes Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ Bytes result = Bytes.wrap(array1).append("some string");
205205Bytes . wrap(array). xor(array2); // 0010 0011 xor() 1011 1000 = 1001 1011
206206Bytes . wrap(array). or(array2); // 0010 0011 or() 1101 0100 = 1111 0111
207207Bytes . wrap(array). and(array2); // 0010 0011 and() 1011 1000 = 0010 0000
208- Bytes . wrap(array). negate (); // 0010 0011 negate() = 1101 1100
208+ Bytes . wrap(array). not (); // 0010 0011 negate() = 1101 1100
209209Bytes . wrap(array). leftShift(8 );
210210Bytes . wrap(array). rightShift(8 );
211211Bytes . wrap(array). switchBit(3 , true );
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ public static Bytes empty() {
108108 * @return new instance
109109 */
110110 public static Bytes wrap (Bytes bytes ) {
111- return new Bytes (bytes .internalArray (), bytes .byteOrder );
111+ return wrap (bytes .internalArray (), bytes .byteOrder );
112112 }
113113
114114 /**
You can’t perform that action at this time.
0 commit comments