/// <summary> /// Appends the specified value as a string to the current buffer. /// </summary> /// <param name="value">The value to append.</param> /// <param name="format">A format specifier indicating how to convert <paramref name="value"/> to a string.</param> public void Append(decimal value, StringView format) { Numeric.FormatDecimal(this, (uint *)&value, format, culture); }
/// <summary> /// Appends the specified value as a string to the current buffer. /// </summary> /// <param name="value">The value to append.</param> /// <param name="format">A format specifier indicating how to convert <paramref name="value"/> to a string.</param> public void Append(float value, StringView format) { Numeric.FormatSingle(this, value, format, culture); }
/// <summary> /// Appends the specified value as a string to the current buffer. /// </summary> /// <param name="value">The value to append.</param> /// <param name="format">A format specifier indicating how to convert <paramref name="value"/> to a string.</param> public void Append(double value, StringView format) { Numeric.FormatDouble(this, value, format, culture); }
/// <summary> /// Appends the specified value as a string to the current buffer. /// </summary> /// <param name="value">The value to append.</param> /// <param name="format">A format specifier indicating how to convert <paramref name="value"/> to a string.</param> public void Append(ulong value, StringView format) { Numeric.FormatUInt64(this, value, format, culture); }
/// <summary> /// Appends the specified value as a string to the current buffer. /// </summary> /// <param name="value">The value to append.</param> /// <param name="format">A format specifier indicating how to convert <paramref name="value"/> to a string.</param> public void Append(uint value, StringView format) { Numeric.FormatUInt32(this, value, format, culture); }
/// <summary> /// Appends the specified value as a string to the current buffer. /// </summary> /// <param name="value">The value to append.</param> /// <param name="format">A format specifier indicating how to convert <paramref name="value"/> to a string.</param> public void Append(ushort value, StringView format) { // widening here is fine Numeric.FormatUInt32(this, value, format, culture); }
/// <summary> /// Appends the specified value as a string to the current buffer. /// </summary> /// <param name="value">The value to append.</param> /// <param name="format">A format specifier indicating how to convert <paramref name="value"/> to a string.</param> public void Append(short value, StringView format) { Numeric.FormatInt16(this, value, format, culture); }
/// <summary> /// Appends the specified value as a string to the current buffer. /// </summary> /// <param name="value">The value to append.</param> /// <param name="format">A format specifier indicating how to convert <paramref name="value"/> to a string.</param> public void Append(sbyte value, StringView format) { Numeric.FormatSByte(this, value, format, culture); }