public static bool Read(IReader reader, ref Wtf val, string name = null) { int tmp = 0; if (!reader.Read(ref tmp, name)) { return(false); } val = (Wtf)tmp; return(true); }
public static bool Write(IWriter writer, Wtf val, string name = null) { return(writer.Write((int)val, name)); }