Class: TagLib::ID3v2::Header

Inherits:
Object
  • Object
show all
Defined in:
docs/taglib/id3v2.rb

Overview

Exposes properties defined in a standard ID3v2 header.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#experimental_indicatorBoolean (readonly)

Returns if the experimental indicator flag is set.

Returns:

  • (Boolean)

    if the experimental indicator flag is set



137
138
139
# File 'docs/taglib/id3v2.rb', line 137

def experimental_indicator
  @experimental_indicator
end

#extended_headerBoolean (readonly)

Returns if an extended header is present in the tag.

Returns:

  • (Boolean)

    if an extended header is present in the tag



134
135
136
# File 'docs/taglib/id3v2.rb', line 134

def extended_header
  @extended_header
end

Returns if a footer is present in the tag.

Returns:

  • (Boolean)

    if a footer is present in the tag



140
141
142
# File 'docs/taglib/id3v2.rb', line 140

def footer_present
  @footer_present
end

#major_versionInteger

The major version number (4 for a ID3v2.4.0 version tag).

Returns:

  • (Integer)

    major version number



120
121
122
# File 'docs/taglib/id3v2.rb', line 120

def major_version
  @major_version
end

#revision_numberInteger (readonly)

The revision version number (0 for a ID3v2.4.0 version tag).

Returns:

  • (Integer)

    revision version number



128
129
130
# File 'docs/taglib/id3v2.rb', line 128

def revision_number
  @revision_number
end

#tag_sizeInteger

The size of the tag without the size of the header.

Returns:

  • (Integer)

    size in bytes



124
125
126
# File 'docs/taglib/id3v2.rb', line 124

def tag_size
  @tag_size
end

#unsynchronisationBoolean (readonly)

Returns if unsynchronisation has been applied to all frames.

Returns:

  • (Boolean)

    if unsynchronisation has been applied to all frames



131
132
133
# File 'docs/taglib/id3v2.rb', line 131

def unsynchronisation
  @unsynchronisation
end

Instance Method Details

#renderTagLib::ByteVector

Renders the header to binary.

Returns:

  • (TagLib::ByteVector)


144
145
# File 'docs/taglib/id3v2.rb', line 144

def render
end