-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
Copy pathIUtf8SpanFormattable.xml
60 lines (60 loc) · 4.78 KB
/
IUtf8SpanFormattable.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<Type Name="IUtf8SpanFormattable" FullName="System.IUtf8SpanFormattable">
<TypeSignature Language="C#" Value="public interface IUtf8SpanFormattable" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract beforefieldinit IUtf8SpanFormattable" />
<TypeSignature Language="DocId" Value="T:System.IUtf8SpanFormattable" />
<TypeSignature Language="VB.NET" Value="Public Interface IUtf8SpanFormattable" />
<TypeSignature Language="F#" Value="type IUtf8SpanFormattable = interface" />
<TypeSignature Language="C++ CLI" Value="public interface class IUtf8SpanFormattable" />
<AssemblyInfo>
<AssemblyName>System.Runtime</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces />
<Docs>
<summary>Provides functionality to format the string representation of an object into a span as UTF-8.</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName="TryFormat">
<MemberSignature Language="C#" Value="public bool TryFormat (Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider? provider);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool TryFormat(valuetype System.Span`1<unsigned int8> utf8Destination, [out] int32& bytesWritten, valuetype System.ReadOnlySpan`1<char> format, class System.IFormatProvider provider) cil managed" />
<MemberSignature Language="DocId" Value="M:System.IUtf8SpanFormattable.TryFormat(System.Span{System.Byte},System.Int32@,System.ReadOnlySpan{System.Char},System.IFormatProvider)" />
<MemberSignature Language="VB.NET" Value="Public Function TryFormat (utf8Destination As Span(Of Byte), ByRef bytesWritten As Integer, format As ReadOnlySpan(Of Char), provider As IFormatProvider) As Boolean" />
<MemberSignature Language="F#" Value="abstract member TryFormat : Span<byte> * int * ReadOnlySpan<char> * IFormatProvider -> bool" Usage="iUtf8SpanFormattable.TryFormat (utf8Destination, bytesWritten, format, provider)" />
<MemberSignature Language="C++ CLI" Value="public:
 bool TryFormat(Span<System::Byte> utf8Destination, [Runtime::InteropServices::Out] int % bytesWritten, ReadOnlySpan<char> format, IFormatProvider ^ provider);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Runtime</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="utf8Destination" Type="System.Span<System.Byte>" />
<Parameter Name="bytesWritten" Type="System.Int32" RefType="out" />
<Parameter Name="format" Type="System.ReadOnlySpan<System.Char>" />
<Parameter Name="provider" Type="System.IFormatProvider">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.Nullable(2)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.Nullable(2)>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="utf8Destination">The span in which to write this instance's value formatted as a span of bytes.</param>
<param name="bytesWritten">When this method returns, contains the number of bytes that were written in <paramref name="utf8Destination" />.</param>
<param name="format">A span containing the characters that represent a standard or custom format string that defines the acceptable format for <paramref name="utf8Destination" />.</param>
<param name="provider">An optional object that supplies culture-specific formatting information for <paramref name="utf8Destination" />.</param>
<summary>Tries to format the value of the current instance as UTF-8 into the provided span of bytes.</summary>
<returns>
<see langword="true" /> if the formatting was successful; otherwise, <see langword="false" />.</returns>
<remarks>An implementation of this interface should produce the same string of characters as an implementation of <see cref="M:System.IFormattable.ToString(System.String,System.IFormatProvider)" /> or <see cref="M:System.ISpanFormattable.TryFormat(System.Span{System.Char},System.Int32@,System.ReadOnlySpan{System.Char},System.IFormatProvider)" /> on the same type. TryFormat should return <see langword="false" /> only if there is not enough space in the destination buffer; any other failures should throw an exception.</remarks>
</Docs>
</Member>
</Members>
</Type>