コード例 #1
0
 public override int GetObjectEncodeSize(object value, bool arrayEncoding)
 {
     if (arrayEncoding)
     {
         return(FixedWidth.Double);
     }
     else
     {
         return(DoubleEncoding.GetEncodeSize((double)value));
     }
 }
コード例 #2
0
 /// <summary>
 /// Gets the encode size of a 64-bit floating point number.
 /// </summary>
 /// <param name="value">The 64-bit floating pointer number.</param>
 /// <returns>Encode size in bytes of the 64-bit floating pointer number.</returns>
 public static int GetDoubleEncodeSize(double?value)
 {
     return(DoubleEncoding.GetEncodeSize(value));
 }