diff --git a/src/commonMain/kotlin/com/infendro/bytes/bytearray/Operator.kt b/src/commonMain/kotlin/com/infendro/bytes/bytearray/Operator.kt index 3e198d7..fd44c2e 100644 --- a/src/commonMain/kotlin/com/infendro/bytes/bytearray/Operator.kt +++ b/src/commonMain/kotlin/com/infendro/bytes/bytearray/Operator.kt @@ -41,7 +41,7 @@ fun ByteArray.andInto( } } -fun ByteArray.andWith(that: ByteArray, startIndex: Int = 0, endIndex: Int = size, thatStartIndex: Int) = +fun ByteArray.andWith(that: ByteArray, startIndex: Int = 0, endIndex: Int = size, thatStartIndex: Int = 0) = andInto(that, this, startIndex, startIndex, endIndex, thatStartIndex) fun ByteArray.andWith(that: Byte, startIndex: Int = 0, endIndex: Int = size) = @@ -95,7 +95,7 @@ fun ByteArray.orInto( } } -fun ByteArray.orWith(that: ByteArray, startIndex: Int = 0, endIndex: Int = size, thatStartIndex: Int) = +fun ByteArray.orWith(that: ByteArray, startIndex: Int = 0, endIndex: Int = size, thatStartIndex: Int = 0) = orInto(that, this, startIndex, startIndex, endIndex, thatStartIndex) fun ByteArray.orWith(that: Byte, startIndex: Int = 0, endIndex: Int = size) = @@ -149,7 +149,7 @@ fun ByteArray.xorInto( } } -fun ByteArray.xorWith(that: ByteArray, startIndex: Int = 0, endIndex: Int = size, thatStartIndex: Int) = +fun ByteArray.xorWith(that: ByteArray, startIndex: Int = 0, endIndex: Int = size, thatStartIndex: Int = 0) = xorInto(that, this, startIndex, startIndex, endIndex, thatStartIndex) fun ByteArray.xorWith(that: Byte, startIndex: Int = 0, endIndex: Int = size) =