Method TrySetEncodedData
- Namespace
 - MaaFramework.Binding.Buffers
 
- Assembly
 - MaaFramework.Binding.Native.dll
 
TrySetEncodedData(byte[])
Sets the image encoded data to a MaaImageBuffer.
public bool TrySetEncodedData(byte[] data)Parameters
databyte[]- 
The image data (PNG).
 
Returns
TrySetEncodedData(Stream)
Sets the image encoded data to a MaaImageBuffer.
public bool TrySetEncodedData(Stream data)Parameters
dataStream- 
The image data (PNG).
 
Returns
TrySetEncodedData(ReadOnlySpan<byte>)
Sets the image encoded data to a MaaImageBuffer.
public bool TrySetEncodedData(ReadOnlySpan<byte> data)Parameters
dataReadOnlySpan<byte>- 
The image data (PNG).
 
Returns
TrySetEncodedData(nint, byte[])
Sets the image encoded data to a MaaImageBuffer.
public static bool TrySetEncodedData(nint handle, byte[] data)Parameters
Returns
TrySetEncodedData(nint, Stream)
Sets the image encoded data to a MaaImageBuffer.
public static bool TrySetEncodedData(nint handle, Stream data)Parameters
Returns
TrySetEncodedData(nint, ReadOnlySpan<byte>)
Sets the image encoded data to a MaaImageBuffer.
public static bool TrySetEncodedData(nint handle, ReadOnlySpan<byte> data)Parameters
handlenint- 
The MaaImageBufferHandle.
 dataReadOnlySpan<byte>- 
The image data (PNG).
 
Returns
TrySetEncodedData(nint, nint, ulong)
Sets the image encoded data to a MaaImageBuffer.
public static bool TrySetEncodedData(nint handle, nint data, ulong size)Parameters
Returns
TrySetEncodedData(byte[], Func<nint, bool>)
Sets the image encoded data to a function using MaaRectBuffer.
public static bool TrySetEncodedData(byte[] data, Func<nint, bool> readBuffer)Parameters
databyte[]- 
The image data (PNG).
 readBufferFunc<nint, bool>- 
The function used to read the data from the buffer.
 
Returns
TrySetEncodedData(Stream, Func<nint, bool>)
Sets the image encoded data to a function using MaaRectBuffer.
public static bool TrySetEncodedData(Stream data, Func<nint, bool> readBuffer)Parameters
dataStream- 
The image data (PNG).
 readBufferFunc<nint, bool>- 
The function used to read the data from the buffer.
 
Returns
TrySetEncodedData(ReadOnlySpan<byte>, Func<nint, bool>)
Sets the image encoded data to a function using MaaRectBuffer.
public static bool TrySetEncodedData(ReadOnlySpan<byte> data, Func<nint, bool> readBuffer)Parameters
dataReadOnlySpan<byte>- 
The image data (PNG).
 readBufferFunc<nint, bool>- 
The function used to read the data from the buffer.