mirror of
https://github.com/Sarsoo/csbindgen.git
synced 2025-01-10 21:57:46 +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` |
|
| `u32` | `uint` |
|
||||||
| `u64` | `ulong` |
|
| `u64` | `ulong` |
|
||||||
| `u128` | `UInt128` |
|
| `u128` | `UInt128` |
|
||||||
|
| `usize` | `nuint` |
|
||||||
| `f32` | `float` |
|
| `f32` | `float` |
|
||||||
| `f64` | `double` |
|
| `f64` | `double` |
|
||||||
| `bool` | `[MarshalAs(UnmanagedType.U1)]bool` |
|
| `bool` | `[MarshalAs(UnmanagedType.U1)]bool` |
|
||||||
| `usize` | `nuint` |
|
| `char` | `uint` |
|
||||||
| `()` | `void` |
|
| `()` | `void` |
|
||||||
| `#[repr(C)]Struct` | `[StructLayout(LayoutKind.Sequential)]Struct` |
|
| `#[repr(C)]Struct` | `[StructLayout(LayoutKind.Sequential)]Struct` |
|
||||||
| `#[repr(C)]Union` | `[StructLayout(LayoutKind.Explicit)]Struct` |
|
| `#[repr(C)]Union` | `[StructLayout(LayoutKind.Explicit)]Struct` |
|
||||||
|
@ -218,6 +218,7 @@ impl RustType {
|
|||||||
"f32" => "float",
|
"f32" => "float",
|
||||||
"f64" => "double",
|
"f64" => "double",
|
||||||
"bool" => "bool",
|
"bool" => "bool",
|
||||||
|
"char" => "uint",
|
||||||
"usize" => "nuint", // C# 9.0
|
"usize" => "nuint", // C# 9.0
|
||||||
"()" => "void",
|
"()" => "void",
|
||||||
_ => {
|
_ => {
|
||||||
|
Loading…
Reference in New Issue
Block a user