protected override object DeserializeSafe(IDecoder decoder)
 {
     return(new AvroEnum(this.Schema)
     {
         IntegerValue = decoder.DecodeInt()
     });
 }
Пример #2
0
        protected override void SkipSafe(IDecoder decoder)
        {
            int index = decoder.DecodeInt();

            this.Schema.Schemas[index].Serializer.Skip(decoder);
        }
Пример #3
0
        protected override object DeserializeSafe(IDecoder decoder)
        {
            int index = decoder.DecodeInt();

            return(this.Schema.Schemas[index].Serializer.Deserialize(decoder));
        }
 protected override object DeserializeSafe(IDecoder decoder)
 {
     return(decoder.DecodeInt());
 }