Esempio n. 1
0
        /// <exception cref="VPackException"/>
        public virtual void seal()
        {
            if (this.builder == null)
            {
                return;
            }
            this.builder.Close();
            VPackSlice slice = this.builder.Slice();

            for (int i = 0; i < slice.getLength(); i++)
            {
                VPackSlice key   = slice.keyAt(i);
                VPackSlice value = slice.valueAt(i);
                this.attributeToKey[key.getAsString()] = value;
                this.keyToAttribute[value.getAsInt()]  = key;
            }
        }
Esempio n. 2
0
 /// <exception cref="VPackException"/>
 public int deserialize(VPackSlice parent, VPackSlice
                        vpack, VPackDeserializationContext context)
 {
     return(vpack.getAsInt());
 }
 /// <exception cref="VPackException"/>
 public CollectionStatus deserialize(VPackSlice
                                     parent, VPackSlice vpack, VPackDeserializationContext
                                     context)
 {
     return(CollectionStatus.fromStatus(vpack.getAsInt()));
 }
 /// <exception cref="VPackException"/>
 public CollectionType deserialize(VPackSlice
                                   parent, VPackSlice vpack, VPackDeserializationContext
                                   context)
 {
     return(CollectionType.fromType(vpack.getAsInt()));
 }
 /// <exception cref="VPackException"/>
 public LogLevel deserialize(VPackSlice
                             parent, VPackSlice vpack, VPackDeserializationContext
                             context)
 {
     return(LogLevel.fromLevel(vpack.getAsInt()));
 }