Table of Contents

Method TryGetEncodedDataList

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

TryGetEncodedDataList(nint, out IList<byte[]>)

Gets the image encoded data list from a MaaImageListBuffer.

public static bool TryGetEncodedDataList(nint handle, out IList<byte[]> dataList)

Parameters

handle nint

The MaaImageListBufferHandle.

dataList IList<byte[]>

The list of image data (PNG).

Returns

bool

true if an empty list or each element was got successfully from the MaaImageListBuffer; otherwise, false.

TryGetEncodedDataList(out IList<byte[]>, Func<nint, bool>)

Gets the image encoded data list from a function using MaaImageListBuffer.

public static bool TryGetEncodedDataList(out IList<byte[]> dataList, Func<nint, bool> writeBuffer)

Parameters

dataList IList<byte[]>

The list of image data (PNG).

writeBuffer Func<nint, bool>

The function used to write the data list to the list buffer.

Returns

bool

true if an empty list or each element was got successfully from the MaaImageListBuffer; otherwise, false.