Table of Contents

Class AdbDeviceListBuffer

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

A class providing a reference implementation for Maa Toolkit Adb Device List Buffer section of MaaFramework.Binding.Interop.Native.MaaToolkit.

public class AdbDeviceListBuffer : MaaListBuffer<nint, AdbDeviceInfo>, IMaaListBuffer<nint, AdbDeviceInfo>, IMaaListBuffer<AdbDeviceInfo>, IList<AdbDeviceInfo>, ICollection<AdbDeviceInfo>, IEnumerable<AdbDeviceInfo>, IEnumerable, IMaaBuffer<nint, IMaaListBuffer<AdbDeviceInfo>>, IMaaBuffer<IMaaListBuffer<AdbDeviceInfo>>, IMaaDisposableHandle<nint>, IMaaDisposable, IDisposable, IAdbDeviceListBufferStatic<nint>

Inheritance

Implements

Inherited Members

Constructors

AdbDeviceListBuffer(nint)

Creates a MaaFramework.Binding.Buffers.AdbDeviceListBuffer instance.

AdbDeviceListBuffer()

Creates a MaaFramework.Binding.Buffers.AdbDeviceListBuffer instance.

Properties

IsEmpty

Gets a value indicates whether the MaaFramework.Binding.Buffers.IMaaListBuffer`1 is empty.

IsReadOnly

Gets a value indicating whether the System.Collections.Generic.ICollection`1 is read-only.

MaaSizeCount

Gets the number of elements contained in the MaaFramework.Binding.Buffers.IMaaListBuffer`1.

this[ulong]

Gets the element at the specified index.

Methods

ReleaseHandle()

When overridden in a derived class, executes the code required to free the handle.

TryAdd(AdbDeviceInfo)

Adds (Copys) an element to the MaaFramework.Binding.Buffers.IMaaListBuffer`1.

TryClear()

Removes all elements from the MaaFramework.Binding.Buffers.IMaaListBuffer`1.

TryCopyTo(nint)

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

TryGetList(nint, out IList<AdbDeviceInfo>)

Gets the MaaFramework.Binding.AdbDeviceInfo list from a AdbDeviceListBuffer.

TryGetList(out IList<AdbDeviceInfo>, Func<nint, bool>)

Gets the MaaFramework.Binding.AdbDeviceInfo list from a function using AdbDeviceListBuffer.

TryIndexOf(AdbDeviceInfo, out ulong)

Attempts to get index of the specified element.

TryRemoveAt(ulong)

Removes the element at the specified index.