ValueAsnReader.TryReadOctetString 메서드

정의

다음 값을 지정된 태그가 있는 OCTET STRING으로 읽고 값을 제공된 대상 버퍼에 복사합니다.

public bool TryReadOctetString(Span<byte> destination, out int bytesWritten, System.Formats.Asn1.Asn1Tag? expectedTag = default);
member this.TryReadOctetString : Span<byte> * int * Nullable<System.Formats.Asn1.Asn1Tag> -> bool
Public Function TryReadOctetString (destination As Span(Of Byte), ByRef bytesWritten As Integer, Optional expectedTag As Nullable(Of Asn1Tag) = Nothing) As Boolean

매개 변수

destination
Span<Byte>

쓸 버퍼입니다.

bytesWritten
Int32

성공하면 .에 기록된 바이트 수를 받습니다 destination.

expectedTag
Nullable<Asn1Tag>

읽기 전 또는 null 기본 태그(유니버설 4)에 대해 확인할 태그입니다.

반품

true 값을 받을 길이가 충분한 경우 destination 판독기를 앞으로 이동하고, 그렇지 않으면 false 판독기는 진행하지 않습니다.

예외

다음 값에는 올바른 태그가 없습니다.

-또는-

길이 인코딩은 현재 인코딩 규칙에 따라 유효하지 않습니다.

-또는-

콘텐츠는 현재 인코딩 규칙에 따라 유효하지 않습니다.

expectedTag. .TagClassUniversal메서드 expectedTagTagValue 에 대해 올바르지 않습니다.

적용 대상

추가 정보