Interface Asn1BitStringParser
- Namespace
- Org.BouncyCastle.Asn1
- Assembly
- BouncyCastle.Cryptography.dll
public interface Asn1BitStringParser : IAsn1Convertible
- Inherited Members
Properties
PadBits
Return the number of pad bits, if any, in the final byte, if any, read from GetBitStream().
int PadBits { get; }
Property Value
- int
The number of pad bits. In the range zero to seven.
Remarks
This number is in the range zero to seven. That number of the least significant bits of the final byte, if any, are not part of the contents and should be ignored. NOTE: Must be called AFTER the stream has been fully processed. (Does not need to be called if GetOctetStream() was used instead of GetBitStream().
Methods
GetBitStream()
Return a Stream representing the contents of the BIT STRING. The final byte, if any, may include pad bits. See PadBits.
Stream GetBitStream()
Returns
Exceptions
GetOctetStream()
Return a Stream representing the contents of the BIT STRING, where the content is expected to be octet-aligned (this will be automatically checked during parsing).
Stream GetOctetStream()