Update INTEROP.md
This commit is contained in:
committed by
GitHub
parent
058bb728df
commit
2f90e3f055
+2
-2
@@ -321,7 +321,7 @@ neither implicit integer casts nor C-style integer casts (e.g.
|
||||
`(size_t) intValue`), so to make writing portable code in such cases easier,
|
||||
the following methods are provided:
|
||||
|
||||
* `fun ${type1}.sizeExtend<${type2}>(): ${type2}`
|
||||
* `fun ${type1}.signExtend<${type2}>(): ${type2}`
|
||||
* `fun ${type1}.narrow<${type2}>(): ${type2}`
|
||||
|
||||
where each of `type1` and `type2` must be an integral type.
|
||||
@@ -345,4 +345,4 @@ fun zeroMemory(buffer: COpaquePointer, size: Int) {
|
||||
```
|
||||
|
||||
Also the type parameter can be inferred automatically and thus may be omitted
|
||||
in some cases.
|
||||
in some cases.
|
||||
|
||||
Reference in New Issue
Block a user