toString

nuint toString(const char[] this, prep char[] buffer = default)
const char[]
this
prep char[]
buffer = default
nuint toString(in bool this, prep char[] buffer = default)
in bool
this
prep char[]
buffer = default
nuint toString(in byte this, prep char[] buffer = default)
in byte
this
prep char[]
buffer = default
nuint toString(in char this, prep char[] buffer = default)
in char
this
prep char[]
buffer = default
nuint toString(in Instant this, prep char[] buffer = default)

Formats an instant as UTC ISO text with a trailing Z.

Remarks

Formatting writes into the caller-provided buffer when space is available and returns the required character count. Invalid input returns 0.

in Instant
this
prep char[]
buffer = default

Destination buffer.

nuint toString(in int this, prep char[] buffer = default)
in int
this
prep char[]
buffer = default
nuint toString(in long this, prep char[] buffer = default)
in long
this
prep char[]
buffer = default
nuint toString(in nint this, prep char[] buffer = default)
in nint
this
prep char[]
buffer = default
nuint toString(in nuint this, prep char[] buffer = default)
in nuint
this
prep char[]
buffer = default
nuint toString(in sbyte this, prep char[] buffer = default)
in sbyte
this
prep char[]
buffer = default
nuint toString(in short this, prep char[] buffer = default)
in short
this
prep char[]
buffer = default
nuint toString(in string this, prep char[] buffer = default)
in string
this
prep char[]
buffer = default
nuint toString(in TimeSpan this, prep char[] buffer = default)

Formats a duration as H:MM:SS with optional milliseconds.

Remarks

Formatting writes into the caller-provided buffer when space is available and returns the required character count.

in TimeSpan
this
prep char[]
buffer = default

Destination buffer.

nuint toString(in uint this, prep char[] buffer = default)
in uint
this
prep char[]
buffer = default
nuint toString(in ulong this, prep char[] buffer = default)
in ulong
this
prep char[]
buffer = default
nuint toString(in ushort this, prep char[] buffer = default)
in ushort
this
prep char[]
buffer = default
nuint toString(in UtcOffset this, prep char[] buffer = default)

Formats a UTC offset as Z or +HH:MM.

Remarks

Formatting always computes from the stored value, even when isValid would return false. It writes into the caller-provided buffer when space is available and returns the required character count.

in UtcOffset
this
prep char[]
buffer = default

Destination buffer.

Generated with campc v0.6.0-preview.1+4dde68eca4014e9b19e7d7ad0fdae6b2036be640.