Simplify working with values in interop

* Access primitive interop array elements and struct fields without `.value`
* Simplify C*Var* interop types names
This commit is contained in:
Svyatoslav Scherbina
2017-03-30 17:19:28 +03:00
committed by SvyatoslavScherbina
parent f94a47518a
commit 50c3be3fc2
29 changed files with 1070 additions and 627 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ fun main(args: Array<String>) {
try {
memScoped {
val bufferLength = 64 * 1024
val buffer = allocArray<CInt8Var>(bufferLength)
val buffer = allocArray<ByteVar>(bufferLength)
for (i in 1..count) {
val nextLine = fgets(buffer, bufferLength, file)?.toKString()