public override int GetObjectEncodeSize(object value, bool arrayEncoding) { if (arrayEncoding) { return(FixedWidth.Long); } else { return(LongEncoding.GetEncodeSize((long)value)); } }
/// <summary> /// Gets the encode size of a 64-bit signed integer. /// </summary> /// <param name="value">The 64-bit signed integer.</param> /// <returns>Encode size in bytes of the 64-bit signed integer.</returns> public static int GetLongEncodeSize(long?value) { return(LongEncoding.GetEncodeSize(value)); }