ValueAsnReader.TryReadBitString 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将下一个值作为具有指定标记的 BIT STRING 读取,并将该值复制到提供的目标缓冲区中。
public bool TryReadBitString(Span<byte> destination, out int unusedBitCount, out int bytesWritten, System.Formats.Asn1.Asn1Tag? expectedTag = default);
member this.TryReadBitString : Span<byte> * int * int * Nullable<System.Formats.Asn1.Asn1Tag> -> bool
Public Function TryReadBitString (destination As Span(Of Byte), ByRef unusedBitCount As Integer, ByRef bytesWritten As Integer, Optional expectedTag As Nullable(Of Asn1Tag) = Nothing) As Boolean
参数
- unusedBitCount
- Int32
成功后,接收写入器报告为“未使用的”最后一个字节中的位数。
- bytesWritten
- Int32
成功后,接收写入到 destination的字节数。
返回
true 如果有足够的长度来接收该值,则前进读取器 destination ,否则 false 读取器不会前进。