Sha256: 47ec5b79c191925552e6d8f04310a1fc790aad9374e1df441412c03dfb844d97

Contents?: true

Size: 697 Bytes

Versions: 8

Compression:

Stored size: 697 Bytes

Contents

# frozen_string_literal: true

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
    #  set.value = [
    #               RASN1::Types::Integer
    #               RASN1::Types::Integer(explicit: 0, optional: true),
    #               RASN1::Types::Integer(implicit: 1, default: 0)
    #              ]
    # @author Sylvain Daubert
    class Set < Sequence
      # Set id value
      ID = 0x11
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rasn1-0.13.1 lib/rasn1/types/set.rb
rasn1-0.13.0 lib/rasn1/types/set.rb
rasn1-0.12.1 lib/rasn1/types/set.rb
rasn1-0.12.0 lib/rasn1/types/set.rb
rasn1-0.11.0 lib/rasn1/types/set.rb
rasn1-0.10.0 lib/rasn1/types/set.rb
rasn1-0.9.0 lib/rasn1/types/set.rb
rasn1-0.8.0 lib/rasn1/types/set.rb