예제 #1
0
        public bool TryCopyBitStringBytes(
            Asn1Tag expectedTag,
            Span <byte> destination,
            out int unusedBitCount,
            out int bytesWritten)
        {
            AsnValueReader reader = OpenValueReader();

            if (reader.TryCopyBitStringBytes(expectedTag, destination, out unusedBitCount, out bytesWritten))
            {
                reader.MatchSlice(ref _data);
                return(true);
            }

            return(false);
        }