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:
2024-12-17 20:45:00 +01:00
parent 9be32b6a53
commit 97e7d91e9c
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ plugins {
}
group = "nl.astraeus"
version = "0.2.8"
version = "0.2.9"
repositories {
mavenCentral()

View File

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