ASN1::BER
Constants
ENDIAN = ["big"]
KLASS_NAME = [ASN1::BER]
PARTS = [{type: "basic", name: identifier, cls: ASN1::BER::Identifier, onlyif: nil, verify: nil, value: nil}, {type: "basic", name: length, cls: ASN1::BER::Length, onlyif: nil, verify: nil, value: nil}] of Nil
REMAINING = [] of Nil
Class methods
bit_fields
SourceInstance methods
__format__
Sourcechildren=(parts)
Sourceconstructed
Sourceextended
Sourceextended?
Sourceget_bitstring
Sourceget_boolean
Sourceget_hexstring(universal = true, tag = UniversalTags::OctetString)
Gets a hex representation of the bytes
get_integer(check_tags = {UniversalTags::Integer, UniversalTags::Enumerated}, check_class = TagClass::Universal) : Int64
Sourceget_integer_bytes
Sourceidentifier
Components of a BER object
identifier=(identifier : Identifier)
Components of a BER object
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>
length
length=(length : Length)
payload
Sourceset_boolean(value)
Sourceset_bytes(data, tag = UniversalTags::OctetString, tag_class = TagClass::Universal)
Sourceset_hexstring(string, tag = UniversalTags::OctetString, tag_class = TagClass::Universal)
Sets bytes from a hexstring
set_integer(value, tag = UniversalTags::Integer, tag_class = TagClass::Universal)
ameba:disable Metrics/CyclomaticComplexity
set_string(string, tag = UniversalTags::UTF8String, tag_class = TagClass::Universal)
Sets a UTF8 string
size
Sourcetag
Sourcetag_class
Sourcetag_class=(tag : TagClass)
Sourcetag_number
SourceMacros
asn1_ber(name, onlyif = nil, verify = nil, value = nil)
Sourceber(name, onlyif = nil, verify = nil, value = nil)
Source