예제 #1
0
 /// <summary>Read a normalized byte.</summary>
 /// <param name="reader"></param>
 /// <returns></returns>
 public static NormalizedByte ReadNormalizedByte(this BinaryReader reader)
 {
     return(NormalizedByte.CreateCoded(reader.ReadByte()));
 }
예제 #2
0
 /// <summary>Get the squared value of the input.</summary>
 public static NormalizedByte Squared(this NormalizedByte value)
 {
     return((NormalizedByte)(value * value));
 }