AsnWriter.WriteBitString 메서드

정의

지정된 태그가 있는 비트 문자열 값을 씁니다.

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)

매개 변수

value
ReadOnlySpan<Byte>

작성할 값입니다.

unusedBitCount
Int32

의미 체계가 아닌 후행 비트의 수입니다.

tag
Nullable<Asn1Tag>

쓸 태그이거나, 기본 태그(유니버설 3)인 경우 null입니다.

예외

tag을 선택합니다.TagClassUniversal이지만 tagTagValue 메서드에 대해 가 올바르지 않습니다. -또는- value는 길이가 0이고 unusedBitCount는 0이 아닙니다. -또는- value는 비어 있지 않고 unusedBitCount로 식별된 비트 중 하나가 설정되었습니다.

unusedBitCount는 [0,7] 범위에 있지 않습니다.

적용 대상