Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Buffers.​Text.​Utf8Formatter
Assembly: System.Memory
Inheritance: object → Utf8Formatter
Provides static methods to format common data types as Utf8 strings.
Methods
public static
bool
TryFormat​(bool value,
Span<​byte> destination,
Int32& bytesWritten,
StandardFormat format = null)
public static
bool
TryFormat​(byte value,
Span<​byte> destination,
Int32& bytesWritten,
StandardFormat format = null)
public static
bool
TryFormat​(DateTime value,
Span<​byte> destination,
Int32& bytesWritten,
StandardFormat format = null)
public static
bool
TryFormat​(DateTimeOffset value,
Span<​byte> destination,
Int32& bytesWritten,
StandardFormat format = null)
public static
bool
TryFormat​(decimal value,
Span<​byte> destination,
Int32& bytesWritten,
StandardFormat format = null)
public static
bool
TryFormat​(double value,
Span<​byte> destination,
Int32& bytesWritten,
StandardFormat format = null)
public static
bool
TryFormat​(Guid value,
Span<​byte> destination,
Int32& bytesWritten,
StandardFormat format = null)
public static
bool
TryFormat​(short value,
Span<​byte> destination,
Int32& bytesWritten,
StandardFormat format = null)
public static
bool
TryFormat​(int value,
Span<​byte> destination,
Int32& bytesWritten,
StandardFormat format = null)
public static
bool
TryFormat​(long value,
Span<​byte> destination,
Int32& bytesWritten,
StandardFormat format = null)
public static
bool
TryFormat​(sbyte value,
Span<​byte> destination,
Int32& bytesWritten,
StandardFormat format = null)
public static
bool
TryFormat​(Single value,
Span<​byte> destination,
Int32& bytesWritten,
StandardFormat format = null)
public static
bool
TryFormat​(TimeSpan value,
Span<​byte> destination,
Int32& bytesWritten,
StandardFormat format = null)
public static
bool
TryFormat​(ushort value,
Span<​byte> destination,
Int32& bytesWritten,
StandardFormat format = null)
public static
bool
TryFormat​(uint value,
Span<​byte> destination,
Int32& bytesWritten,
StandardFormat format = null)
public static
bool
TryFormat​(ulong value,
Span<​byte> destination,
Int32& bytesWritten,
StandardFormat format = null)
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object