char maps uint

This commit is contained in:
neuecc 2023-03-19 02:23:39 +09:00
parent e6152665d7
commit a1db7165c7
2 changed files with 3 additions and 1 deletions

View File

@ -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` |

View File

@ -218,6 +218,7 @@ impl RustType {
"f32" => "float",
"f64" => "double",
"bool" => "bool",
"char" => "uint",
"usize" => "nuint", // C# 9.0
"()" => "void",
_ => {