C# Class System.Formats.Asn1.AsnWriter

ファイルを表示 Open project: mikedn/runtime

Public Methods

Method Description
WriteNamedBitList ( BitArray value, Asn1Tag? tag = null ) : void

Write a bit array value as a NamedBitList with a specified tag.

The index of the bit array corresponds to the bit number in the encoded format, which is different than the value produced by BitArray.CopyTo with a byte array. For example, the bit array { false, true, true } encodes as 0b0110_0000 with 5 unused bits.

WriteNamedBitList ( Enum value, Asn1Tag? tag = null ) : void

Write a [FlagsAttribute] enum value as a NamedBitList with a specified tag.

WriteNamedBitList ( value, Asn1Tag? tag = null ) : void

Write a [FlagsAttribute] enum value as a NamedBitList with a specified tag.

Private Methods

Method Description
WriteBitArray ( BitArray value, Asn1Tag? tag ) : void
WriteNamedBitList ( Asn1Tag? tag, Type tEnum, Enum value ) : void
WriteNamedBitList ( Asn1Tag? tag, ulong integralValue ) : void

Method Details

WriteNamedBitList() public method

Write a bit array value as a NamedBitList with a specified tag.
The index of the bit array corresponds to the bit number in the encoded format, which is different than the value produced by BitArray.CopyTo with a byte array. For example, the bit array { false, true, true } encodes as 0b0110_0000 with 5 unused bits.
/// . is /// , but /// . is not correct for /// the method. /// /// is . ///
public WriteNamedBitList ( BitArray value, Asn1Tag? tag = null ) : void
value BitArray The bits to write
tag Asn1Tag? The tag to write, or for the default tag (Universal 3).
return void

WriteNamedBitList() public method

Write a [FlagsAttribute] enum value as a NamedBitList with a specified tag.
/// . is /// , but /// . is not correct for /// the method. /// /// -or- /// /// is not a boxed enum value. /// /// -or- /// /// the unboxed type of is not declared []. /// /// is . ///
public WriteNamedBitList ( Enum value, Asn1Tag? tag = null ) : void
value Enum The boxed enumeration value to write
tag Asn1Tag? The tag to write, or for the default tag (Universal 3).
return void

WriteNamedBitList() public method

Write a [FlagsAttribute] enum value as a NamedBitList with a specified tag.
/// . is /// , but /// . is not correct for /// the method. /// /// -or- /// /// is not an enum value. /// /// -or- /// /// is not declared []. ///
public WriteNamedBitList ( value, Asn1Tag? tag = null ) : void
value The enumeration value to write
tag Asn1Tag? The tag to write, or for the default tag (Universal 3).
return void