Ejemplo n.º 1
0
 public override object ReadValue(FieldInfo f, ImageReader rdr, ReaderContext ctx)
 {
     int i = 0;
     for (; rdr.PeekByte(i) != 0; ++i)
     {
     }
     var s = Encoding.UTF8.GetString(rdr.ReadBytes(i));
     rdr.Offset++;
     return s;
 }
Ejemplo n.º 2
0
        public override object ReadValue(FieldInfo f, ImageReader rdr, ReaderContext ctx)
        {
            int i = 0;

            for (; rdr.PeekByte(i) != 0; ++i)
            {
            }
            var s = Encoding.UTF8.GetString(rdr.ReadBytes(i));

            rdr.Offset++;
            return(s);
        }