Add ByteArray constructor
This commit is contained in:
@@ -18,4 +18,8 @@ open class TypedByteArray(
|
||||
index += type.size
|
||||
}
|
||||
}
|
||||
|
||||
constructor(data: ByteArray): this(ByteArrayDefinition()) {
|
||||
this.data = MutableByteArrayHandler(buffer = data)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user