Class: RASN1::Types::Null
- Defined in:
- lib/rasn1/types/null.rb
Overview
ASN.1 Null
Constant Summary collapse
- TAG =
0x05
Constants inherited from Primitive
Constants inherited from Base
Base::CLASSES, Base::INDEFINITE_LENGTH, Base::MAX_TAG
Instance Attribute Summary
Attributes inherited from Base
#asn1_class, #default, #name, #value
Instance Method Summary collapse
Methods inherited from Base
#constructed?, #explicit?, #implicit?, #initialize, #initialize_copy, #optional?, #parse!, #primitive?, #tag, #tagged?, #to_der, type, #type, #value_size
Constructor Details
This class inherits a constructor from RASN1::Types::Base
Instance Method Details
#der_to_value(der, ber: false) ⇒ Object
13 14 15 16 |
# File 'lib/rasn1/types/null.rb', line 13 def der_to_value(der, ber: false) raise ASN1Error, "NULL TAG should not have content!" if der.length > 0 @value = nil end |
#value_to_der ⇒ Object
9 10 11 |
# File 'lib/rasn1/types/null.rb', line 9 def value_to_der '' end |