示例#1
0
        public static short[] DeserializeSystemInt16Array(JSONArray jsonArray)
        {
            var result = new short[jsonArray.Length()];

            for (var i = 0; i < result.Length; i++)
            {
                result[i] = (short)jsonArray.OptInt(i);
            }

            return result;
        }
示例#2
0
        public static byte[] DeserializeSystemByteArray(JSONArray jsonArray)
        {
            var result = new byte[jsonArray.Length()];

            for (var i = 0; i < result.Length; i++)
            {
                result[i] = (byte)jsonArray.OptInt(i);
            }

            return result;
        }