Mark few JVM-compatibility declarations deprecated. (#2029)

This commit is contained in:
Nikolay Igotti
2018-09-11 14:18:14 +03:00
committed by GitHub
parent 669e38f566
commit 7d1713a4c9
2 changed files with 17 additions and 0 deletions
+14
View File
@@ -340,6 +340,20 @@ manually:
In all cases the C string is supposed to be encoded as UTF-8.
To skip automatic conversion and ensure raw pointers are used in the bindings `noStringConversion`
statement in `.def` file could be used, i.e.
```
noStringConversion = LoadCursorA LoadCursorW
```
This way any value of type `CPointer<ByteVar>` could be passed as an argument of `const char*` type.
If Kotlin string shall me passed code like that could be used:
```kotlin
memScoped {
LoadCursorA(null, "cursor.bmp".cstr.ptr) // for ASCII version
LoadCursorW(null, "cursor.bmp".wcstr.ptr) // for Unicode version
}
```
### Scope-local pointers ###
It is possible to create scope-stable pointer of C representation of `CValues<T>`