Asn1BitStringParserPadBits Property

Return the number of pad bits, if any, in the final byte, if any, read from GetBitStream.

Definition

Namespace: Org.BouncyCastle.Asn1
Assembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
int PadBits { get; }

Return Value

Int32
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.

See Also