AsnWriter.WriteBitString(ReadOnlySpan<Byte>, Int32, Nullable<Asn1Tag>) Método
Definição
Grava um valor de Cadeia de Caracteres de Bits com uma marca especificada.Write a Bit String value with a specified tag.
public void WriteBitString (ReadOnlySpan<byte> value, int unusedBitCount = 0, System.Formats.Asn1.Asn1Tag? tag = default);
member this.WriteBitString : ReadOnlySpan<byte> * int * Nullable<System.Formats.Asn1.Asn1Tag> -> unit
Public Sub WriteBitString (value As ReadOnlySpan(Of Byte), Optional unusedBitCount As Integer = 0, Optional tag As Nullable(Of Asn1Tag) = Nothing)
Parâmetros
- value
- ReadOnlySpan<Byte>
O valor a ser gravado.The value to write.
- unusedBitCount
- Int32
O número de bits à direita que não são semânticos.The number of trailing bits which are not semantic.
A marca a ser gravada ou null para a marca padrão (Universal 3).The tag to write, or null for the default tag (Universal 3).
Exceções
tag.TagClasstag.TagClass é Universal, mas tag.TagValueis Universal, but tag.TagValue não está correto para o método.is not correct for the method.
-ou- value tem comprimento 0 e unusedBitCount não é 0 -ou- value não está vazio e qualquer um dos bits identificados por unusedBitCount está definido.-or- value has length 0 and unusedBitCount is not 0 -or- value is not empty and any of the bits identified by unusedBitCount is set.
unusedBitCount não está no intervalo [0,7].unusedBitCount is not in the range [0,7].