Hide nativeMemUtils and pointerSize
This commit is contained in:
committed by
SvyatoslavScherbina
parent
388aba5040
commit
d8ed1f4414
@@ -31,8 +31,7 @@ class CUrl(val url: String) {
|
||||
}
|
||||
|
||||
fun CPointer<ByteVar>.toKString(length: Int): String {
|
||||
val bytes = ByteArray(length)
|
||||
nativeMemUtils.getByteArray(pointed, bytes, length)
|
||||
val bytes = this.readBytes(length)
|
||||
return kotlin.text.fromUtf8Array(bytes, 0, bytes.size)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user