Skip to content

Marshal return string parameter #177

@amerkoleci

Description

@amerkoleci

Not sure if this is bug, or way to hide the mapping, how would be possible to marshal return string type:
The function I try to map is:

const wchar_t* IDxcBlobUtf16::GetStringPointer()

Now I get an unasigned string:

internal unsafe System.String GetStringPointer()
{
  System.String __result__;
  System.IntPtr __result__native;
  __result__native = Vortice.Dxc.LocalInterop.CalliStdCallSystemIntPtr(this._nativePointer, (*(void ***)this._nativePointer)[6]);
   return __result__;
 }

@andrew-boyarshin

Thanks

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions