/// <summary> /// Converts the given array of bytes to a double precision floating number. /// </summary> public double ToDouble(byte[] value, int startIndex) { return(BitConverterEx.ToDouble(value, startIndex, mFrom, mTo)); }
/// <summary> /// Converts the given double precision floating-point number to an array of bytes. /// </summary> public byte[] GetBytes(double value) { return(BitConverterEx.GetBytes(value, mFrom, mTo)); }
/// <summary> /// Converts the given array of bytes to a single precision floating number. /// </summary> public float ToSingle(byte[] value, int startIndex) { return(BitConverterEx.ToSingle(value, startIndex, mFrom, mTo)); }
/// <summary> /// Converts the given array of bytes to a 64-bit signed integer. /// </summary> public long ToInt64(byte[] value, int startIndex) { return(BitConverterEx.ToInt64(value, startIndex, mFrom, mTo)); }
/// <summary> /// Converts the given array of bytes to a 32-bit signed integer. /// </summary> public int ToInt32(byte[] value, int startIndex) { return(BitConverterEx.ToInt32(value, startIndex, mFrom, mTo)); }
/// <summary> /// Converts the given array of bytes to a 16-bit signed integer. /// </summary> public short ToInt16(byte[] value, int startIndex) { return(BitConverterEx.ToInt16(value, startIndex, mFrom, mTo)); }
/// <summary> /// Converts the given array of bytes to a 16-bit unsigned integer. /// </summary> public char ToChar(byte[] value, int startIndex) { return(BitConverterEx.ToChar(value, startIndex, mFrom, mTo)); }