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)
Source Code
lib/ttfunk/table/dsig.rb, line 29
29
def initialize(format, length, offset, signature)
30
  @format = format
31
  @length = length
32
  @offset = offset
33
  @signature = signature
34
end

Instance Attribute Details

#formatInteger (readonly)

Format of the signature.

Returns:

  • (Integer)
Source Code
lib/ttfunk/table/dsig.rb, line 11
11
def format
12
  @format
13
end

#lengthInteger (readonly)

Length of signature in bytes.

Returns:

  • (Integer)
Source Code
lib/ttfunk/table/dsig.rb, line 15
15
def length
16
  @length
17
end

#offsetInteger (readonly)

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

Returns:

  • (Integer)
Source Code
lib/ttfunk/table/dsig.rb, line 19
19
def offset
20
  @offset
21
end

#signatureString (readonly)

Signature PKCS#7 packet.

Returns:

  • (String)
Source Code
lib/ttfunk/table/dsig.rb, line 23
23
def signature
24
  @signature
25
end