Class: Gsf::StructuredBlob

Inherits:
Infile show all
Defined in:
(unknown)

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Infile

#child_by_aname, #child_by_index, #child_by_name, #child_by_vaname, #child_by_vname, #name_by_index, #num_children

Methods inherited from Input

#container, #container=, #copy, #dump, #dup, #eof, #eof=, #eof?, error_id, #find_vba, #initialize, #modtime, #modtime=, #modtime_from_stat=, #name, #name=, #name_from_filename=, #position, #position=, #read, #read0, #read_raw, #remaining, #remaining=, #seek, #seek_emulate, #sibling, #size, #size=, #tell, #uncompress

Constructor Details

This class inherits a constructor from Gsf::Input

Class Method Details

.read(input) ⇒ Gsf::StructuredBlob

Create a tree of binary blobs with unknown content from a Gsf::Input or Gsf::Infile and store it in a newly created #GsfStructuredBlob.

Parameters:

  • input (Gsf::Input)

    An input (potentially a GsfInfile) holding the blob

Returns:

  • (Gsf::StructuredBlob)

    a new Gsf::StructuredBlob object which the caller is responsible for.

Instance Method Details

#write(container) ⇒ Boolean

Dumps structured blob blob onto the container. Will fail if the output is not an Outfile and blob has multiple streams.

Parameters:

Returns:

  • (Boolean)

    true on success.