AsnWriter.WriteBitString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
Parameters
- value
- ReadOnlySpan<Byte>
The value to write.
- unusedBitCount
- Int32
The number of trailing bits which are not semantic.
Exceptions
tag
.TagClass is Universal, but tag
.TagValue is not correct for the method.
-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
is not in the range [0,7].
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET