From d3a67c622cae802467895274b86716d8001857ca Mon Sep 17 00:00:00 2001 From: Infendro Date: Wed, 11 Mar 2026 23:12:41 +0100 Subject: [PATCH 1/2] Fix default parameter --- .../kotlin/com/infendro/bytes/bytearray/Operator.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) = -- 2.49.1 From e8baac9ba3d00f6ed5747dfe7720a4c2849c7480 Mon Sep 17 00:00:00 2001 From: Infendro Date: Wed, 11 Mar 2026 23:17:32 +0100 Subject: [PATCH 2/2] Bump version to 1.4.2 --- README.md | 2 +- build.gradle.kts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9b193a2..6f38ef4 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,6 @@ repositories { } commonMain.dependencies { - implementation("com.infendro:bytes:1.4.1") + implementation("com.infendro:bytes:1.4.2") } ``` diff --git a/build.gradle.kts b/build.gradle.kts index d02c137..f41fffd 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,7 +5,7 @@ import com.infendro.plugin.token import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl group = "com.infendro" -version = "1.4.1" +version = "1.4.2" plugins { alias(libs.plugins.infendro) -- 2.49.1