Gsf.OutfileMSOle

g GObject.Object GObject.Object Gsf.Output Gsf.Output GObject.Object->Gsf.Output Gsf.Outfile Gsf.Outfile Gsf.OutfileMSOle Gsf.OutfileMSOle Gsf.Outfile->Gsf.OutfileMSOle Gsf.Output->Gsf.Outfile

Subclasses:

None

Methods

Inherited:

Gsf.Outfile (2), Gsf.Output (18), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (sink)

class

new_full (sink, bb_size, sb_size)

set_class_id (clsid)

Virtual Methods

Inherited:

Gsf.Output (3), GObject.Object (7)

Properties

Inherited:

Gsf.Output (6)

Name

Type

Flags

Short Description

big-block-size

int

r/w/co

The size of the OLE’s big blocks

sink

Gsf.Output

r/w/co

The destination for writes

small-block-size

int

r/w/co

The size of the OLE’s small blocks

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Gsf.OutfileMSOle(**kwargs)
Bases:

Gsf.Outfile

Abstract:

No

classmethod new(sink)
Parameters:

sink (Gsf.Output) – a Gsf.Output to hold the OLE2 file

Returns:

the new ole file handler.

Return type:

Gsf.Outfile

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

This adds a reference to sink.

classmethod new_full(sink, bb_size, sb_size)
Parameters:
  • sink (Gsf.Output) – a Gsf.Output to hold the OLE2 file.

  • bb_size (int) – size of large blocks.

  • sb_size (int) – size of small blocks.

Returns:

the new ole file handler.

Return type:

Gsf.Outfile

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

This adds a reference to sink.

set_class_id(clsid)
Parameters:

clsid (bytes) – Identifier (often a GUID in MS Windows apps)

Returns:

True on success.

Return type:

bool

Write clsid to the directory associated with self.

Property Details

Gsf.OutfileMSOle.props.big_block_size
Name:

big-block-size

Type:

int

Default Value:

512

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The size of the OLE’s big blocks

Gsf.OutfileMSOle.props.sink
Name:

sink

Type:

Gsf.Output

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The destination for writes

Gsf.OutfileMSOle.props.small_block_size
Name:

small-block-size

Type:

int

Default Value:

64

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The size of the OLE’s small blocks