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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user