Table of Contents

Method TrySetEncodedDataList

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

TrySetEncodedDataList(THandle, IEnumerable<byte[]>)

Sets the image encoded data list to a MaaImageListBuffer.

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

Parameters

handle THandle

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(THandle, IEnumerable<Stream>)

Sets the image encoded data list to a MaaImageListBuffer.

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

Parameters

handle THandle

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<THandle, bool>)

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

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

Parameters

dataList IEnumerable<byte[]>

The list of image data (PNG).

readBuffer Func<THandle, 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<THandle, bool>)

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

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

Parameters

dataList IEnumerable<Stream>

The list of image data (PNG).

readBuffer Func<THandle, 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.