protected override object DeserializeSafe(IDecoder decoder)
 {
     return(new AvroEnum(this.Schema)
     {
         IntegerValue = decoder.DecodeInt()
     });
 }
Exemplo n.º 2
0
        protected override void SkipSafe(IDecoder decoder)
        {
            int index = decoder.DecodeInt();

            this.Schema.Schemas[index].Serializer.Skip(decoder);
        }
Exemplo n.º 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());
 }