Is there a call I can use to convert the pointer to the error message `DebugMessageCallback` is givi

Is there a call I can use to convert the pointer to the error message DebugMessageCallback is giving me into an actual dotNet string? Tried Encoding.UTF8.GetString((byte*) Unsafe.AsPointer(ref message), length); but it is choking with encoding errors
Was this page helpful?