Sha256: 694aa12e9df635e41798cb6b4f87fccfe8539f6027827628cbb0bb0753e10170

Contents?: true

Size: 699 Bytes

Versions: 2

Compression:

Stored size: 699 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 tag value
      TAG = 0x11
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rasn1-0.7.1 lib/rasn1/types/set.rb
rasn1-0.7.0 lib/rasn1/types/set.rb