Class: Gsf::OutfileMSOle

Inherits:
Outfile show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from Outfile

#new_child, #new_child_full, #new_child_varg, #open_pkg_add_rel

Methods inherited from Output

#close, #container, #container=, #error, error_id, #is_closed, #is_closed=, #is_closed?, #modtime, #modtime=, #name, #name=, #name_from_filename=, #position, #position=, #printf, #puts, #seek, #set_error, #size, #size=, #tell, unwrap, #vprintf, wrap, #write

Constructor Details

#initialize(sink, bb_size, sb_size) ⇒ Gsf::Outfile

Creates the root directory of an MS OLE file and manages the addition of children.

This adds a reference to sink.

Parameters:

  • sink (Gsf::Output)

    a Gsf::Output to hold the OLE2 file.

  • bb_size (Integer)

    size of large blocks.

  • sb_size (Integer)

    size of small blocks.

Instance Method Details

#big_block_sizeInteger

Returns big-block-size.

Returns:

  • (Integer)

    big-block-size

#big_block_size=(big_block_size) ⇒ Integer

Parameters:

  • big_block_size (Integer)

Returns:

  • (Integer)

    big-block-size

  • (Integer)

    big-block-size

#class_id=(clsid) ⇒ Boolean

Write clsid to the directory associated with ole.

Parameters:

  • clsid (Array<Integer>)

    Identifier (often a GUID in MS Windows apps)

Returns:

  • (Boolean)

    true on success.

#sinkGsf::Output

Returns sink.

Returns:

#sink=(sink) ⇒ Gsf::Output

Parameters:

Returns:

#small_block_sizeInteger

Returns small-block-size.

Returns:

  • (Integer)

    small-block-size

#small_block_size=(small_block_size) ⇒ Integer

Parameters:

  • small_block_size (Integer)

Returns:

  • (Integer)

    small-block-size

  • (Integer)

    small-block-size