using System; using System.Collections.Generic; using System.Text; namespace SharpGen.Runtime.Win32 { public static class RawBoolHelpers { /// /// Converts bool array to array. /// /// The bool array. /// Converted array of . public static RawBool[] ConvertToRawBoolArray(ReadOnlySpan array) { var temp = new RawBool[array.Length]; for (int i = 0; i < temp.Length; i++) temp[i] = array[i]; return temp; } /// /// Converts array to bool array. /// /// The array. /// Converted array of bool. public static bool[] ConvertToBoolArray(ReadOnlySpan array) { var temp = new bool[array.Length]; for (int i = 0; i < temp.Length; i++) temp[i] = array[i]; return temp; } } }