Table of Contents

Method TryCopyTo

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

TryCopyTo(THandle)

Copies all values of the current buffer to the specified buffer.

public abstract bool TryCopyTo(THandle bufferHandle)

Parameters

bufferHandle THandle

The handle of the buffer that is the destination of values copied from the current buffer.

Returns

bool

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

Exceptions

NotSupportedException

The MaaFramework.Binding.Buffers.IMaaBuffer`2 is read-only.

TryCopyTo(IMaaListBuffer<T>)

Copies all values of the current buffer to the specified buffer.

public bool TryCopyTo(IMaaListBuffer<T> buffer)

Parameters

buffer IMaaListBuffer<T>

The buffer that is the destination of values copied from the current buffer.

Returns

bool

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

Exceptions

NotSupportedException

The MaaFramework.Binding.Buffers.IMaaBuffer`1 is read-only.