コード例 #1
0
 /// <summary>Read a <see cref="NormalizedInt32"/>.</summary>
 /// <param name="reader"></param>
 /// <returns></returns>
 public static NormalizedInt32 ReadNormalizedInt32(this BinaryReader reader)
 {
     return(NormalizedInt32.CreateCoded(reader.ReadInt32()));
 }
コード例 #2
0
 /// <summary>Get the squared value of the input.</summary>
 public static NormalizedInt32 Squared(this NormalizedInt32 value)
 {
     return((NormalizedInt32)(value * value));
 }