Class: Gsf::InputProxy

Inherits:
Input
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from Input

#container, #container=, #copy, #dump, #dup, #eof, #eof=, #eof?, error_id, #find_vba, #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

#initialize(source, offset, size) ⇒ Gsf::Input

This creates a new proxy to a section of the given source. The new object will have its own current position, but any operation on it can change the source's position.

If a proxy to a proxy is created, the intermediate proxy is short- circuited.

This function will ref the source.

Parameters:

  • source (Gsf::Input)

    The underlying data source.

  • offset (Gsf::gsf_off_t)

    Offset into source for start of section.

  • size (Gsf::gsf_off_t)

    Length of section.