Show / Hide Table of Contents

GetDecodedSize Method

GetDecodedSize(ReadOnlySpan<char>)

Get the number of bytes in data represented by base-32 encoded text.

C#
public static int GetDecodedSize(ReadOnlySpan<char> encoded)

Parameters

Type Name Description
ReadOnlySpan<char> encoded

The text to be decoded.

Returns

int

An int representing the number of bytes.

Remarks

The other encoding classes don't have the Get*Size methods. However, base-32 encoding represents five bits per character, and padding has to be accounted for, so it's a complex enough of an operation to merit a helper.

In this article
Back to top Generated by DocFX