Table of Contents

Method Set

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

Set(nint, string, bool)

Sets a string into the MaaStringBuffer.

public static bool Set(nint handle, string str, bool useEx = true)

Parameters

handle nint
str string

The string.

useEx bool

Uses MaaSetStringEx if true; otherwise, Uses MaaSetString.

Returns

bool

true if the string was set successfully; otherwise, false.

Remarks

Wrapper of MaaFramework.Binding.Interop.Native.MaaBuffer.MaaStringBufferSet(System.IntPtr,System.String) and MaaFramework.Binding.Interop.Native.MaaBuffer.MaaStringBufferSetEx(System.IntPtr,System.Byte[],System.UInt64).