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 |
---|---|---|
System.ReadOnlySpan<System.Char> | encoded | The text to be decoded. |
Returns
System.Int32
An System.Int32 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.