Asn1BitString Class

Represents a BIT_STRING ASN.1 tag object.

Definition

Namespace: SysadminsLV.Asn1Parser.Universal
Assembly: SysadminsLV.Asn1Parser (in SysadminsLV.Asn1Parser.dll) Version: 1.2.11
C#
public sealed class Asn1BitString : Asn1Universal
Inheritance
Object    Asn1Universal    Asn1BitString

Constructors

Asn1BitString(Asn1Reader) Initializes a new instance of the Asn1BitString class from an Asn1Reader object.
Asn1BitString(Byte) Initializes a new instance of Asn1BitString from a ASN.1-encoded byte array.
Asn1BitString(Byte, Byte) Initializes a new instance of Asn1BitString from a raw byte array to encode and a number of unused bits in a current bit string.
Asn1BitString(Byte, Boolean) Initializes a new instance of Asn1BitString from a raw byte array to encode and parameter that indicates whether the bit length is decremented to exclude trailing zero bits.

Properties

IsContainer Indicates whether the current structure is container. This includes all constructed types and may include OCTET_STRING and BIT_STRING with encapsulated types. OCTET_STRING and BIT_STRING use primitive type form.
(Inherited from Asn1Universal)
RawData Gets the full tag raw data, including header and payload information.
(Inherited from Asn1Universal)
Obsolete.
Tag Gets the numeric tag value of the current ASN type.
(Inherited from Asn1Universal)
TagName Gets the textual name of the ASN tag.
(Inherited from Asn1Universal)
UnusedBits Gets the count of unused bits in the current BIT_STRING.
Value Gets raw value of BIT_STRING without unused bits identifier.

Methods

CalculateUnusedBits(Byte) Calculates the number of bits left unused in the specified byte.
CalculateUnusedBits(Byte) Calculates the number of bits left unused in the final byte of content.
Equals
(Inherited from Object)
Format Encodes current tag to either, Base64 or hex string.
(Inherited from Asn1Universal)
GetDisplayValue Gets formatted tag value.
(Overrides Asn1UniversalGetDisplayValue)
GetHashCode
(Inherited from Object)
GetRawData Gets the full tag raw data, including header and payload information.
(Inherited from Asn1Universal)
GetType
(Inherited from Object)
ToString
(Inherited from Object)

See Also