35 return new bool[
_size];
47 return new int[
_size];
59 return new ushort[
_size];
71 return new float[
_size];
104 for (
int j = 0;
j <
types.Length;
j++)
118 if (
inputs.Length % 2 != 0)
120 throw new Exception(
"You have a bad length for inputs on CreateArraySet");
123 for (
int i = 0; i <
intBuffer.Length; i++)
127 for (
int j = 0;
j <
inputs.Length;
j += 2)
136 if (
inputs.Length % 2 != 0)
138 throw new Exception(
"You have a bad length for inputs on CreateArraySet");
145 for (
int j = 0;
j <
inputs.Length;
j += 2)
154 if (
inputs.Length % 2 != 0)
156 throw new Exception(
"You have a bad length for inputs on CreateArraySet");
163 for (
int j = 0;
j <
inputs.Length;
j += 2)
172 if (
inputs.Length % 2 != 0)
174 throw new Exception(
"You have a bad length for inputs on CreateCustomSet");
177 for (
int i = 0; i <
array.Length; i++)
183 for (
int j = 0;
j <
inputs.Length;
j += 2)
static ? object ChangeType(object? value, TypeCode typeCode)
readonly Queue< float[]> _floatBufferCache
int[] CreateIntSet(int defaultState, params int[] inputs)
ushort[] GetUshortBuffer()
bool[] CreateBoolSet(bool defaultState, params int[] types)
void Recycle< T >(T[] buffer)
ushort[] CreateUshortSet(ushort defaultState, params ushort[] inputs)
readonly Queue< bool[]> _boolBufferCache
readonly Queue< int[]> _intBufferCache
float[] CreateFloatSet(float defaultState, params float[] inputs)
bool[] CreateBoolSet(params int[] types)
readonly Queue< ushort[]> _ushortBufferCache
T[] CreateCustomSet< T >(T defaultState, params object[] inputs)
int[] CreateIntSet(params int[] types)