Fix AnsiBuffer naming
This commit is contained in:
parent
a0d662a352
commit
22fab43a0a
1 changed files with 4 additions and 4 deletions
|
|
@ -8,21 +8,21 @@ namespace Raylib_cs
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public readonly ref struct AnsiBuffer
|
public readonly ref struct AnsiBuffer
|
||||||
{
|
{
|
||||||
private readonly IntPtr data;
|
private readonly IntPtr _data;
|
||||||
|
|
||||||
public AnsiBuffer(string text)
|
public AnsiBuffer(string text)
|
||||||
{
|
{
|
||||||
data = Marshal.StringToHGlobalAnsi(text);
|
_data = Marshal.StringToHGlobalAnsi(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
public unsafe sbyte* AsPointer()
|
public unsafe sbyte* AsPointer()
|
||||||
{
|
{
|
||||||
return (sbyte*)data.ToPointer();
|
return (sbyte*)_data.ToPointer();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
{
|
{
|
||||||
Marshal.FreeHGlobal(data);
|
Marshal.FreeHGlobal(_data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue