Compare commits

...

3 Commits

Author SHA1 Message Date
8eb4752fe6 Merge pull request '1.4.2 Release' (#12) from develop into main
All checks were successful
/ publish (push) Successful in 1m16s
Reviewed-on: Infendro/bytes-kt#12
2026-03-11 22:21:55 +00:00
e8baac9ba3 Bump version to 1.4.2
All checks were successful
/ test (pull_request) Successful in 27s
2026-03-11 23:17:32 +01:00
d3a67c622c Fix default parameter 2026-03-11 23:12:41 +01:00
3 changed files with 5 additions and 5 deletions

View File

@@ -12,6 +12,6 @@ repositories {
}
commonMain.dependencies {
implementation("com.infendro:bytes:1.4.1")
implementation("com.infendro:bytes:1.4.2")
}
```

View File

@@ -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)

View File

@@ -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) =