Table of Contents

Method Set

Namespace
MaaFramework.Binding.Buffers
Assembly
MaaFramework.Binding.Native.dll

Set(nint, IEnumerable<string>)

Sets a string list to a MaaStringListBufferHandle.

public static bool Set(nint handle, IEnumerable<string> list)

Parameters

handle nint

The MaaStringListBufferHandle.

list IEnumerable<string>

The string list.

Returns

bool

true if the operation was executed successfully; otherwise, false.

Set(IEnumerable<string>, Func<nint, bool>)

Sets a string <code class="paramref">list</code> to a MaaStringListBufferHandle,

then calls a func to use the MaaStringListBufferHandle.

public static bool Set(IEnumerable<string> list, Func<nint, bool> func)

Parameters

list IEnumerable<string>

The string list.

func Func<nint, bool>

A function that takes a MaaStringListBufferHandle and returns a boolean indicating success or failure.

Returns

bool

true if the operation was executed successfully; otherwise, false.