diff --git a/src/commonMain/kotlin/nl/astraeus/tba/TypedByteArray.kt b/src/commonMain/kotlin/nl/astraeus/tba/TypedByteArray.kt index 1dc479c..291c50c 100644 --- a/src/commonMain/kotlin/nl/astraeus/tba/TypedByteArray.kt +++ b/src/commonMain/kotlin/nl/astraeus/tba/TypedByteArray.kt @@ -18,4 +18,8 @@ open class TypedByteArray( index += type.size } } + + constructor(data: ByteArray): this(ByteArrayDefinition()) { + this.data = MutableByteArrayHandler(buffer = data) + } }