DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="4.0.0-rc.2" />

 Base64Decoder

public struct Base64Decoder
Represents base64 decoder suitable for streaming.
public bool NeedMoreData { get; }

Indicates that decoders expected additional data to decode.

public void Decode(ReadOnlySpan<char> chars, IBufferWriter<byte> output)

Decodes base64 characters.

public void Decode(ref ReadOnlySequence chars, IBufferWriter<byte> output)

Decodes base64 characters.

public void Decode<TConsumer>(ReadOnlySpan<char> chars, TConsumer output) where TConsumer : IReadOnlySpanConsumer<byte>

Decodes base64-encoded bytes.

public void Decode<TArg>(ReadOnlySpan<char> chars, ReadOnlySpanAction<byte, TArg> callback, TArg arg)

Decodes base64-encoded bytes.

public void Decode<TArg>(ReadOnlySpan<char> chars, method callback, TArg arg)

public void Decode(ReadOnlySpan<byte> utf8Chars, IBufferWriter<byte> output)

Decodes UTF-8 encoded base64 string.

public void Decode(ref ReadOnlySequence utf8Chars, IBufferWriter<byte> output)

Decodes UTF-8 encoded base64 string.

public void Decode<TConsumer>(ReadOnlySpan<byte> utf8Chars, TConsumer output) where TConsumer : IReadOnlySpanConsumer<byte>

Decodes base64-encoded bytes.

public void Decode<TArg>(ReadOnlySpan<byte> utf8Chars, ReadOnlySpanAction<byte, TArg> output, TArg arg)

Decodes UTF-8 encoded base64 string.

public void Decode<TArg>(ReadOnlySpan<byte> utf8Chars, method output, TArg arg)

public void Decode(ReadOnlySpan<byte> utf8Chars, Stream output)

Decodes UTF-8 encoded base64 string and writes result to the stream synchronously.