mirror of
https://github.com/Sarsoo/csbindgen.git
synced 2024-12-22 22:46:26 +00:00
char maps uint
This commit is contained in:
parent
e6152665d7
commit
a1db7165c7
@ -374,10 +374,11 @@ Rust types will map these C# types.
|
||||
| `u32` | `uint` |
|
||||
| `u64` | `ulong` |
|
||||
| `u128` | `UInt128` |
|
||||
| `usize` | `nuint` |
|
||||
| `f32` | `float` |
|
||||
| `f64` | `double` |
|
||||
| `bool` | `[MarshalAs(UnmanagedType.U1)]bool` |
|
||||
| `usize` | `nuint` |
|
||||
| `char` | `uint` |
|
||||
| `()` | `void` |
|
||||
| `#[repr(C)]Struct` | `[StructLayout(LayoutKind.Sequential)]Struct` |
|
||||
| `#[repr(C)]Union` | `[StructLayout(LayoutKind.Explicit)]Struct` |
|
||||
|
@ -218,6 +218,7 @@ impl RustType {
|
||||
"f32" => "float",
|
||||
"f64" => "double",
|
||||
"bool" => "bool",
|
||||
"char" => "uint",
|
||||
"usize" => "nuint", // C# 9.0
|
||||
"()" => "void",
|
||||
_ => {
|
||||
|
Loading…
Reference in New Issue
Block a user