Class: BMFF::Box::SchemeType

Inherits:
Full
  • Object
show all
Defined in:
lib/bmff/box/scheme_type.rb

Overview

vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent:

Instance Attribute Summary collapse

Attributes inherited from Full

#flags, #version

Attributes inherited from Base

#io, #largesize, #offset, #parent, #size, #type, #usertype

Instance Method Summary collapse

Methods inherited from Base

#actual_size, #container?, #eob?, #parse, register_box, register_uuid_box, #remaining_size, #root, #seek_to_end

Instance Attribute Details

#scheme_typeObject

Returns the value of attribute scheme_type.



5
6
7
# File 'lib/bmff/box/scheme_type.rb', line 5

def scheme_type
  @scheme_type
end

#scheme_urlObject

Returns the value of attribute scheme_url.



5
6
7
# File 'lib/bmff/box/scheme_type.rb', line 5

def scheme_url
  @scheme_url
end

#scheme_versionObject

Returns the value of attribute scheme_version.



5
6
7
# File 'lib/bmff/box/scheme_type.rb', line 5

def scheme_version
  @scheme_version
end

Instance Method Details

#parse_dataObject



8
9
10
11
12
13
14
15
# File 'lib/bmff/box/scheme_type.rb', line 8

def parse_data
  super
  @scheme_type = io.get_ascii(4)
  @scheme_version = io.get_uint32
  if @flags & 0x01 > 0
    @scheme_url = io.get_null_terminated_string
  end
end