Class: Rupert::RPM::Signature::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/rupert/rpm/signature/entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag, type, offset, count) ⇒ Entry

Initializes a new index entry.

Parameters:

  • tag (String)

    4 byte entry tag (semantic data type)

  • type (String)

    4 byte entry data format

  • offset (String)

    4 byte pointer to data in the index store

  • count (String)

    4 byte number of data items held by the entry



11
12
13
# File 'lib/rupert/rpm/signature/entry.rb', line 11

def initialize(tag, type, offset, count)
  @tag, @type, @offset, @count = tag, type, offset, count
end

Instance Attribute Details

#countObject

Returns the value of attribute count.



15
16
17
# File 'lib/rupert/rpm/signature/entry.rb', line 15

def count
  @count
end

#offsetObject

Returns the value of attribute offset.



15
16
17
# File 'lib/rupert/rpm/signature/entry.rb', line 15

def offset
  @offset
end

#tagObject

Returns the value of attribute tag.



15
16
17
# File 'lib/rupert/rpm/signature/entry.rb', line 15

def tag
  @tag
end

#typeObject

Returns the value of attribute type.



15
16
17
# File 'lib/rupert/rpm/signature/entry.rb', line 15

def type
  @type
end