示例#1
0
 public static extern uint ValueCompare(ref JsonValue pval1, ref JsonValue pval2);
示例#2
0
 public static extern uint ValueType(ref JsonValue pval, out VALUE_TYPE pType, out int pUnits);
示例#3
0
 public static extern uint ValueStringData(ref JsonValue pval, out IntPtr pChars, out int pNumChars);
示例#4
0
 public static extern uint ValueToString(ref JsonValue pval, /*VALUE_STRING_CVT_TYPE*/ VALUE_STRING_CVT_TYPE how);
示例#5
0
 public static extern uint ValueInvoke(ref JsonValue pval, ref JsonValue pthis, uint argc, ref JsonValue argv, ref JsonValue pretval, [MarshalAs(UnmanagedType.LPWStr)] string url);
示例#6
0
 public static extern uint ValueNthElementValueSet(ref JsonValue pval, int n, ref JsonValue pval_to_set);
示例#7
0
 public static extern uint ValueCompare(ref JsonValue pval1, ref JsonValue pval2);
示例#8
0
 public static extern uint ValueFloatData(ref JsonValue pval, out double pData);
示例#9
0
 public static extern uint ValueBinaryDataSet(ref JsonValue pval, IntPtr pBytes, int nBytes, VALUE_TYPE type, int units);
示例#10
0
 public static extern uint ValueClear(ref JsonValue pval);
示例#11
0
 public static extern uint ValueBinaryData(ref JsonValue pval, out IntPtr pBytes, out int pnBytes);
示例#12
0
 /// <summary>
 /// Releases allocated array
 /// </summary>
 public static void FreeJsonArray(JsonValue[] arr)
 {
     foreach (var val in arr)
         val.Clear();
 }
示例#13
0
        /// <summary>
        /// Converts array of <see cref="Object"/> to the array of <see cref="JsonValue"/>
        /// </summary>
        public static JsonValue[] CreateJsonArray(object[] args)
        {
            if (args != null)
            {
                var jsons = new JsonValue[args.Length];
                for (int i = 0; i < args.Length; i++)
                {
                    jsons[i] = new JsonValue(args[i]);
                }

                return jsons;
            }

            return null;
        }
示例#14
0
 public static extern uint ValueStringDataSet(ref JsonValue pval, [MarshalAs(UnmanagedType.LPWStr)] String chars, int numChars, VALUE_UNIT_TYPE units);
示例#15
0
 public static extern uint ValueCopy(ref JsonValue pdst, ref JsonValue psrc);
示例#16
0
 public static extern uint ValueInt64Data(ref JsonValue pval, out long pData);
示例#17
0
 public static extern uint ValueElementsCount(ref JsonValue pval, out int pn);
示例#18
0
        /// <summary>
        /// Calls scripting function
        /// </summary>
        public static object SciterCall(IntPtr hwnd, string functionName, params object[] args)
        {
            var jsonResult = new JsonValue();
            var jsonParams = JsonValue.CreateJsonArray(args);

            try
            {
                SciterCall(hwnd, functionName, jsonParams.Length, jsonParams, out jsonResult);
                return jsonResult.GetValue();
            }
            finally
            {
                JsonValue.FreeJsonArray(jsonParams);
                jsonResult.Clear();
            }
        }
示例#19
0
 public static extern uint ValueEnumElements(ref JsonValue pval, KeyValueCallback penum, IntPtr param);
示例#20
0
 public static extern uint ValueNthElementValue(ref JsonValue pval, int n, ref JsonValue pretval);
示例#21
0
 public static extern uint ValueFloatData(ref JsonValue pval, out double pData);
示例#22
0
 public static extern uint ValueSetValueToKey(ref JsonValue pval, ref JsonValue pkey, ref JsonValue pval_to_set);
示例#23
0
 public static extern uint ValueFloatDataSet(ref JsonValue pval, double data, VALUE_TYPE type, int units);
示例#24
0
 public static extern uint ValueStringDataSet(ref JsonValue pval, [MarshalAs(UnmanagedType.LPWStr)]String chars, int numChars, VALUE_UNIT_TYPE units);
示例#25
0
 public static extern uint ValueFromString(ref JsonValue pval, [MarshalAs(UnmanagedType.LPWStr)] string str, int strLength, /*VALUE_STRING_CVT_TYPE*/ VALUE_STRING_CVT_TYPE how);
示例#26
0
 public static extern uint ValueType(ref JsonValue pval, out VALUE_TYPE pType, out int pUnits);
示例#27
0
 public static extern uint ValueGetValueOfKey(ref JsonValue pval, ref JsonValue pkey, ref JsonValue pretval);
示例#28
0
 public static extern uint ValueCopy(ref JsonValue pdst, ref JsonValue psrc);
示例#29
0
 public static extern uint ValueInit(ref JsonValue pval);
示例#30
0
 public static extern uint ValueStringData(ref JsonValue pval, out IntPtr pChars, out int pNumChars);
示例#31
0
 public static extern uint ValueInt64Data(ref JsonValue pval, out long pData);
示例#32
0
 public static extern uint ValueIntData(ref JsonValue pval, out int pData);
示例#33
0
 public static extern uint ValueIntData(ref JsonValue pval, out int pData);
示例#34
0
 public static extern uint ValueInt64DataSet(ref JsonValue pval, long data, VALUE_TYPE type, int units);
示例#35
0
 public static extern uint ValueIntDataSet(ref JsonValue pval, int data, VALUE_TYPE type, int units);
示例#36
0
 public static extern uint ValueFloatDataSet(ref JsonValue pval, double data, VALUE_TYPE type, int units);
示例#37
0
 private static extern bool SciterCall(IntPtr hWnd, [MarshalAs(UnmanagedType.LPStr)] string functionName, int argc, [MarshalAs(UnmanagedType.LPArray)] JsonValue[] argv, out JsonValue retval);