StringBuilderExtensionAppendUrlEncoded(StringBuilder, ReadOnlySpan`1Byte) Method
Appends the content of a read-only
Byte span as URL-encoded
character sequence to the end of a
StringBuilder.
Namespace: FolkerKinzel.StringsAssembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
public static StringBuilder AppendUrlEncoded(
this StringBuilder builder,
ReadOnlySpan<byte> bytes
)
<ExtensionAttribute>
Public Shared Function AppendUrlEncoded (
builder As StringBuilder,
bytes As ReadOnlySpan(Of Byte)
) As StringBuilder
public:
[ExtensionAttribute]
static StringBuilder^ AppendUrlEncoded(
StringBuilder^ builder,
ReadOnlySpan<unsigned char> bytes
)
[<ExtensionAttribute>]
static member AppendUrlEncoded :
builder : StringBuilder *
bytes : ReadOnlySpan<byte> -> StringBuilder
- builder StringBuilder
- The StringBuilder to which the characters are
appended.
- bytes ReadOnlySpanByte
- The read-only Byte span that contains the data.
StringBuilderA reference to
builder after the append operation has
completed.In Visual Basic and C#, you can call this method as an instance method on any object of type
StringBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
The method treats all
Bytes in
bytes
as 8-Bit characters and replaces all of them - except unreserved RFC 3986 characters
- with their hexadecimal representation.