Esempio n. 1
0
 /// <exception cref="VPackValueTypeException"/>
 protected internal SliceIterator(VPackSlice slice)
     : base()
 {
     this.slice    = slice;
     this.size     = slice.getLength();
     this.position = 0;
 }
Esempio n. 2
0
        /// <exception cref="VPackException"/>
        private void parseArray(VPackSlice value, java.lang.StringBuilder
                                json, bool includeNullValues)
        {
            json.Append(ARRAY_OPEN);
            int added = 0;

            for (int i = 0; i < value.getLength(); i++)
            {
                VPackSlice valueAt = value.get(i);
                if (!valueAt.isNull() || includeNullValues)
                {
                    if (added++ > 0)
                    {
                        json.Append(SEPARATOR);
                    }
                    this.parse(value, null, valueAt, json, includeNullValues);
                }
            }
            json.Append(ARRAY_CLOSE);
        }