josetr
josetr
### Before you start... - [X] Have you updated your dependencies? You might be using an old version of the library. - [X] Have you checked if someone already requested...
```cs // void tolower(std::string& str) public static void Tolower(string str) { var __basicString0 = new global::std.basic_string(); global::std.basic_stringExtensions.assign(__basicString0, str); var __arg0 = __basicString0.__Instance; __Internal.Tolower(__arg0); __basicString0.Dispose(); } ```
```c++ template struct Test { auto& Container() { return container; } std::vector container; }; ``` `System.NullReferenceException` because `Pointee` is null at https://github.com/mono/CppSharp/blob/6a1db77cbfbe0a7d1860ad1064960627fb78225a/src/Generator/Generators/C/CppTypePrinter.cs#L134
OS: Windows ##### Used headers string_view ##### Used settings Target: MSVC `Driver.ParserOptions.LanguageVersion` = `LanguageVersion.CPP17` ##### Generated code ``` .cs // DEBUG: void method(std::string_view data) // DEBUG: { // DEBUG: }...
This seems by design since `in` is only supported since C# 7.2 but even if it was supported when CppSharp was created, it's more cumbersome to pass these kind of...
* `Class.HasRefBase` checks if the base `IsGenerated` * `Class.HasBase` does not check if the base `IsGenerated` `Class.HasRefBase` also only checks if the first base is ignored, what happens if a...
The only solution I can think of to this problem is generating native wrappers to avoid passing objects by value. This is working right now in some cases because depending...
The native method receives the same object, not a copy and the destructor ends up being called twice on the same object. The windows 32 bit target does copy the...
The supported ones currently are ASCII, UTF8, Unicode, BigEndianUnicode, UTF32 and UTF7 but the last one seems incomplete since `CppSharp.Types.Std.ConstCharPointer.CSharpSignatureType` doesn't support it.
Cloning the whole native array is super fast or super slow depending on the size and maybe the consumer just wants to access a specific element, or perhaps just loop...