Add constructor to SlicedByteArray and update version to 0.2.6

Introduce a new constructor in `SlicedByteArray` for initializing from a ByteArray. Updated `build.gradle.kts` to bump the version to 0.2.6, and made minor adjustments to `readme.md` to improve clarity and consistency.
This commit is contained in:
2024-12-14 11:19:22 +01:00
parent 69fa23a7a9
commit 232d8fe92a
3 changed files with 12 additions and 10 deletions

View File

@@ -8,6 +8,8 @@ class SlicedByteArray(
val size: Int
get() = length
constructor(array: ByteArray) : this(array, 0, array.size)
constructor(size: Int) : this(ByteArray(size), 0, size)
operator fun get(index: Int): Byte {