Sha256: 96cbb8637bc24a8abea2be88dacd7cabc89252fe5ebd36886c44cb7a71800762

Contents?: true

Size: 672 Bytes

Versions: 7

Compression:

Stored size: 672 Bytes

Contents

module RASN1
  module Types

    # ASN.1 set
    #
    # A set is a collection of another ASN.1 types.
    #
    # To encode this ASN.1 example:
    #  Record ::= SET {
    #    id        INTEGER,
    #    room  [0] INTEGER OPTIONAL,
    #    house [1] IMPLICIT INTEGER DEFAULT 0
    #  }
    # do:
    #  set = RASN1::Types::Set.new(:record)
    #  set.value = [
    #               RASN1::Types::Integer(:id),
    #               RASN1::Types::Integer(:id, explicit: 0, optional: true),
    #               RASN1::Types::Integer(:id, implicit: 1, default: 0)
    #              ]
    # @author Sylvain Daubert
    class Set < Sequence
      TAG = 0x11
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rasn1-0.6.0 lib/rasn1/types/set.rb
rasn1-0.5.0 lib/rasn1/types/set.rb
rasn1-0.4.0 lib/rasn1/types/set.rb
rasn1-0.3.1 lib/rasn1/types/set.rb
rasn1-0.3.0 lib/rasn1/types/set.rb
rasn1-0.2.0 lib/rasn1/types/set.rb
rasn1-0.1.0 lib/rasn1/types/set.rb