예제 #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);