Table of Contents

Method TrySetEncodedDataList

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

TrySetEncodedDataList(nint, IEnumerable<byte[]>)

Sets the image encoded data list to a MaaImageListBuffer.

public static bool TrySetEncodedDataList(nint handle, IEnumerable<byte[]> dataList)

Parameters

handle nint

The MaaImageListBufferHandle.

dataList IEnumerable<byte[]>

The list of image data (PNG).

Returns

bool

true if all element were set successfully to the MaaImageListBuffer; otherwise, false.

TrySetEncodedDataList(nint, IEnumerable<Stream>)

Sets the image encoded data list to a MaaImageListBuffer.

public static bool TrySetEncodedDataList(nint handle, IEnumerable<Stream> dataList)

Parameters

handle nint

The MaaImageListBufferHandle.

dataList IEnumerable<Stream>

The list of image data (PNG).

Returns

bool

true if all element were set successfully to the MaaImageListBuffer; otherwise, false.

TrySetEncodedDataList(IEnumerable<byte[]>, Func<nint, bool>)

Sets the image encoded data list to a function using MaaImageListBuffer.

public static bool TrySetEncodedDataList(IEnumerable<byte[]> dataList, Func<nint, bool> readBuffer)

Parameters

dataList IEnumerable<byte[]>

The list of image data (PNG).

readBuffer Func<nint, bool>

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

Returns

bool

true if all element were set successfully to the MaaImageListBuffer; otherwise, false.

TrySetEncodedDataList(IEnumerable<Stream>, Func<nint, bool>)

Sets the image encoded data list to a function using MaaImageListBuffer.

public static bool TrySetEncodedDataList(IEnumerable<Stream> dataList, Func<nint, bool> readBuffer)

Parameters

dataList IEnumerable<Stream>

The list of image data (PNG).

readBuffer Func<nint, bool>

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

Returns

bool

true if all element were set successfully to the MaaImageListBuffer; otherwise, false.