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; }
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); }