Base64.GetMaxDecodedFromUtf8Length(Int32) 方法

定义

如果要解码具有指定长度的字节跨度中的 base-64 编码的文本,则返回结果的最大长度(以字节为单位)。Returns the maximum length (in bytes) of the result if you were to decode base-64 encoded text within a byte span with the specified length.

public:
 static int GetMaxDecodedFromUtf8Length(int length);
public static int GetMaxDecodedFromUtf8Length (int length);
static member GetMaxDecodedFromUtf8Length : int -> int
Public Shared Function GetMaxDecodedFromUtf8Length (length As Integer) As Integer

参数

length
Int32

字节跨度的大小。The size of the byte span.

返回

Int32

结果的最大长度(以字节为单位)。The maximum length (in bytes) of the result.

例外

length 小于 0。length is less than 0.

适用于