Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Implemented Utf-8 conversions for strings from and to the library. #306

Merged

Conversation

jeremyVignelles
Copy link
Collaborator

Fixes #305

@jeremyVignelles jeremyVignelles merged commit 4284d22 into ZeBobo5:develop Sep 19, 2017
@jeremyVignelles jeremyVignelles deleted the fix/string-conversion branch September 19, 2017 14:42
/// </summary>
/// <param name="ptr">The c-style string pointer</param>
/// <returns>The string object</returns>
public static string Utf8InteropToString(IntPtr ptr)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On newer versions of .NET (netstandard2) you can use Marshal.PtrToStringUTF8

return true;
}

/// <summary>En cas de substitution dans une classe dérivée, obtient une valeur indiquant si la valeur du handle n'est pas valide.</summary>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should just be "Obtient une valeur indiquant si la valeur du handle n'est pas valide" (having fun, sorry)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, I left a french comment as generated by my VS, sorry :D

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants