Class: Id3Taginator::Header::Id3v23ExtendedHeader
- Inherits:
-
Object
- Object
- Id3Taginator::Header::Id3v23ExtendedHeader
- Defined in:
- lib/id3taginator/header/id3v23_extended_header.rb
Instance Attribute Summary collapse
-
#crc_data ⇒ Object
Returns the value of attribute crc_data.
-
#flags ⇒ Object
Returns the value of attribute flags.
-
#padding ⇒ Object
Returns the value of attribute padding.
-
#size ⇒ Object
Returns the value of attribute size.
Instance Method Summary collapse
-
#crc ⇒ String?
returns the CRC data if present.
-
#crc? ⇒ Boolean
determined if the crc is present.
-
#initialize(size, flags, padding, crc_data = nil) ⇒ Id3v23ExtendedHeader
constructor
constructor.
Constructor Details
#initialize(size, flags, padding, crc_data = nil) ⇒ Id3v23ExtendedHeader
constructor
15 16 17 18 19 20 |
# File 'lib/id3taginator/header/id3v23_extended_header.rb', line 15 def initialize(size, flags, padding, crc_data = nil) @size = size @flags = flags @padding = padding @crc_data = crc_data end |
Instance Attribute Details
#crc_data ⇒ Object
Returns the value of attribute crc_data.
7 8 9 |
# File 'lib/id3taginator/header/id3v23_extended_header.rb', line 7 def crc_data @crc_data end |
#flags ⇒ Object
Returns the value of attribute flags.
7 8 9 |
# File 'lib/id3taginator/header/id3v23_extended_header.rb', line 7 def flags @flags end |
#padding ⇒ Object
Returns the value of attribute padding.
7 8 9 |
# File 'lib/id3taginator/header/id3v23_extended_header.rb', line 7 def padding @padding end |
#size ⇒ Object
Returns the value of attribute size.
7 8 9 |
# File 'lib/id3taginator/header/id3v23_extended_header.rb', line 7 def size @size end |
Instance Method Details
#crc ⇒ String?
returns the CRC data if present
25 26 27 |
# File 'lib/id3taginator/header/id3v23_extended_header.rb', line 25 def crc @crc_data end |
#crc? ⇒ Boolean
determined if the crc is present
32 33 34 |
# File 'lib/id3taginator/header/id3v23_extended_header.rb', line 32 def crc? (@flags[0] & 0b10000000) == 0b10000000 end |