mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Experimental GPU overclock
This commit is contained in:
29
app/NvAPIWrapper/Native/General/Structures/LongString.cs
Normal file
29
app/NvAPIWrapper/Native/General/Structures/LongString.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using NvAPIWrapper.Native.Interfaces;
|
||||
|
||||
namespace NvAPIWrapper.Native.General.Structures
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
|
||||
internal struct LongString : IInitializable
|
||||
{
|
||||
public const int LongStringLength = 256;
|
||||
|
||||
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = LongStringLength)]
|
||||
private readonly string _Value;
|
||||
|
||||
public string Value
|
||||
{
|
||||
get => _Value;
|
||||
}
|
||||
|
||||
public LongString(string value)
|
||||
{
|
||||
_Value = value ?? string.Empty;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return Value;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user