public void SetNumber(IntPtr isolate, IntPtr holder, double number) { PuertsDLL.PropertyReturnNumber(isolate, holder, number); }
bool FastArrayGet(IntPtr isolate, IntPtr info, IntPtr self, object obj, uint index) { bool hited = true; var type = obj.GetType(); if (type == typeof(int[])) { int[] array = obj as int[]; PuertsDLL.PropertyReturnNumber(isolate, info, array[index]); } else if (type == typeof(float[])) { float[] array = obj as float[]; PuertsDLL.PropertyReturnNumber(isolate, info, array[index]); } else if (type == typeof(double[])) { double[] array = obj as double[]; PuertsDLL.PropertyReturnNumber(isolate, info, array[index]); } else if (type == typeof(bool[])) { bool[] array = obj as bool[]; PuertsDLL.PropertyReturnBoolean(isolate, info, array[index]); } else if (type == typeof(long[])) { long[] array = obj as long[]; PuertsDLL.PropertyReturnBigInt(isolate, info, array[index]); } else if (type == typeof(ulong[])) { ulong[] array = obj as ulong[]; PuertsDLL.PropertyReturnBigInt(isolate, info, (long)array[index]); } else if (type == typeof(sbyte[])) { sbyte[] array = obj as sbyte[]; PuertsDLL.PropertyReturnNumber(isolate, info, array[index]); } else if (type == typeof(short[])) { short[] array = obj as short[]; PuertsDLL.PropertyReturnNumber(isolate, info, array[index]); } else if (type == typeof(ushort[])) { ushort[] array = obj as ushort[]; PuertsDLL.PropertyReturnNumber(isolate, info, array[index]); } else if (type == typeof(char[])) { char[] array = obj as char[]; PuertsDLL.PropertyReturnNumber(isolate, info, array[index]); } else if (type == typeof(uint[])) { uint[] array = obj as uint[]; PuertsDLL.PropertyReturnNumber(isolate, info, array[index]); } else if (type == typeof(string[])) { string[] array = obj as string[]; string str = array[index]; if (str == null) { PuertsDLL.PropertyReturnNull(isolate, info); } else { PuertsDLL.PropertyReturnString(isolate, info, str); } } else { hited = false; } return(hited); }