Method TrySetList
- Namespace
- MaaFramework.Binding.Buffers
- Assembly
- MaaFramework.Binding.Native.dll
TrySetList(nint, IEnumerable<string>)
Sets the string list to a MaaStringListBuffer.
public static bool TrySetList(nint handle, IEnumerable<string> stringList)
Parameters
handle
nint-
The MaaStringListBufferHandle.
stringList
IEnumerable<string>-
The list of strings.
Returns
TrySetList(IEnumerable<string>, Func<nint, bool>)
Sets the string list to a function using MaaStringListBuffer.
public static bool TrySetList(IEnumerable<string> stringList, Func<nint, bool> readBuffer)
Parameters
stringList
IEnumerable<string>-
The list of strings.
readBuffer
Func<nint, bool>-
The function used to read the string list to the list buffer.