public T ReadEnum32 <T>(int bits) where T : struct
 {
     return(UdpUtils.IntToEnum <T>(ReadInt(bits)));
 }
 public void WriteEnum32 <T>(T value, int bits) where T : struct
 {
     WriteInt(UdpUtils.EnumToInt(value), bits);
 }