Class: TTFunk::Table::Dsig::SignatureRecord

Inherits:
Object
  • Object
show all
Defined in:
lib/ttfunk/table/dsig.rb

Overview

Signature record.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(format, length, offset, signature) ⇒ SignatureRecord

Returns a new instance of SignatureRecord.

Parameters:

  • format (Integer)
  • length (Integer)
  • offset (Integer)
  • signature (String)


29
30
31
32
33
34
# File 'lib/ttfunk/table/dsig.rb', line 29

def initialize(format, length, offset, signature)
  @format = format
  @length = length
  @offset = offset
  @signature = signature
end

Instance Attribute Details

#formatInteger (readonly)

Format of the signature.

Returns:

  • (Integer)


11
12
13
# File 'lib/ttfunk/table/dsig.rb', line 11

def format
  @format
end

#lengthInteger (readonly)

Length of signature in bytes.

Returns:

  • (Integer)


15
16
17
# File 'lib/ttfunk/table/dsig.rb', line 15

def length
  @length
end

#offsetInteger (readonly)

Offset to the signature block from the beginning of the table.

Returns:

  • (Integer)


19
20
21
# File 'lib/ttfunk/table/dsig.rb', line 19

def offset
  @offset
end

#signatureString (readonly)

Signature PKCS#7 packet.

Returns:

  • (String)


23
24
25
# File 'lib/ttfunk/table/dsig.rb', line 23

def signature
  @signature
end