Fix incorrect size computation in SlicedByteArray.
Corrected the `size` property to return the full `length` instead of subtracting the offset. Updated the project version to 0.2.9 to reflect this fix.
This commit is contained in:
@@ -6,7 +6,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = "nl.astraeus"
|
||||
version = "0.2.8"
|
||||
version = "0.2.9"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
||||
@@ -6,7 +6,7 @@ class SlicedByteArray(
|
||||
val length: Int
|
||||
) {
|
||||
val size: Int
|
||||
get() = length - offset
|
||||
get() = length
|
||||
|
||||
constructor(array: ByteArray) : this(array, 0, array.size)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user