ReverseEndianness Method
Definition
ReverseEndianness(byte[], Action<EndianOptions>)
Reverses the byte order of the specified byte array when required by the configured endianness.
public static byte[] ReverseEndianness(byte[] input, Action<EndianOptions> setup = null)
Parameters
inputbyte[]The byte array whose byte order to reverse.
setupAction<EndianOptions>The delegate that configures the desired byte order.
Returns
- byte[]
input, either unchanged or reversed to match the configured byte order.