Method TrySetValue
- Namespace
- MaaFramework.Binding.Buffers
- Assembly
- MaaFramework.Binding.Native.dll
TrySetValue(string, bool)
Sets the string to a MaaStringBuffer.
public bool TrySetValue(string str, bool useEx = true)Parameters
Returns
TrySetValue(nint, string, bool)
Sets the string to a MaaStringBuffer.
public static bool TrySetValue(nint handle, string str, bool useEx = true)Parameters
handlenint-
The MaaStringBufferHandle.
strstring-
The string.
useExbool-
Uses MaaSetStringEx() if true; otherwise, Uses MaaSetString().
Returns
TrySetValue(string, bool, Func<nint, bool>)
Sets the string to a function using MaaRectBuffer.
public static bool TrySetValue(string str, bool useEx, Func<nint, bool> readBuffer)Parameters
strstring-
The string.
useExbool-
Uses MaaSetStringEx() if true; otherwise, Uses MaaSetString().
readBufferFunc<nint, bool>-
The function used to read the string from the buffer.
Returns
- bool
-
The System.String.