Example #1
0
        public void Seal()
        {
            if (builder == null)
            {
                return;
            }
            builder.Close();
            VPackSlice slice = builder.Slice();

            for (int i = 0; i < slice.Length; i++)
            {
                VPackSlice key   = slice.KeyAt(i);
                VPackSlice value = slice.ValueAt(i);
                attributeToKey[key.ToStringUnchecked()] = value;
                keyToAttribute[value.ToInt32().Value]   = key;
            }
        }
Example #2
0
 /// <summary>
 /// Writes the end of a JSON object.
 /// </summary>
 public override void WriteEndObject()
 {
     base.WriteEndObject();
     builder.Close();
 }