PemEncoding.GetEncodedSize(Int32, Int32) Método

Definição

Determina o comprimento de um valor codificado no formato PEM, em caracteres, dado o comprimento de um rótulo e dos dados binários.Determines the length of a PEM-encoded value, in characters, given the length of a label and binary data.

public:
 static int GetEncodedSize(int labelLength, int dataLength);
public static int GetEncodedSize (int labelLength, int dataLength);
static member GetEncodedSize : int * int -> int
Public Shared Function GetEncodedSize (labelLength As Integer, dataLength As Integer) As Integer

Parâmetros

labelLength
Int32

O comprimento do rótulo, em caracteres.The length of the label, in characters.

dataLength
Int32

O comprimento dos dados, em bytes.The length of the data, in bytes.

Retornos

Int32

O número de caracteres do valor codificado no formato PEM.The number of characters in the encoded PEM.

Exceções

labelLength é um valor negativo.labelLength is a negative value.

- ou --or-

dataLength é um valor negativo.dataLength is a negative value.

- ou --or-

labelLength excede o comprimento máximo possível de rótulo.labelLength exceeds the maximum possible label length.

- ou --or-

dataLength excede o comprimento máximo possível de dados codificados.dataLength exceeds the maximum possible encoded data length.

O comprimento do valor codificado no formato PEM é maior que MaxValue.The length of the PEM-encoded value is larger than MaxValue.

Aplica-se a