Class: LAME::Decoding::Id3TagParser

Inherits:
Object
  • Object
show all
Defined in:
lib/lame/decoding/id3_tag_parser.rb

Overview

id3.org/id3v2.4.0-structure Section 3.1. ID3v2 header

10 bytes header:

  • “ID3”

  • “xx” version (2 bytes)

  • “x” flags (1 byte)

  • “xxxx” size (4 bytes)

Constant Summary collapse

HEADER_SIZE =
10

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ Id3TagParser

Returns a new instance of Id3TagParser.



16
17
18
# File 'lib/lame/decoding/id3_tag_parser.rb', line 16

def initialize(file)
  @file = file
end

Instance Method Details

#skip!Object



20
21
22
23
# File 'lib/lame/decoding/id3_tag_parser.rb', line 20

def skip!
  @file.seek(0)
  @file.seek(id3_length)
end