Vips.Connection¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
File descriptor for read or write |
||
r/w |
Name of file to open |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
close_descriptor |
r |
||
descriptor |
r |
||
parent_object |
r |
||
tracked_descriptor |
r |
Class Details¶
- class Vips.Connection(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
An abstract base class representing a source or sink of bytes.
It can be connected to a network socket, for example, or perhaps a Node.js stream, or to an area of memory. This allows it to support operations like JPEG loading, see for example [ctor`Image`.jpegload_source].
Subclass to add other input sources. Use [class`SourceCustom`] and [class`TargetCustom`] to make a source or target with action signals. These classes provide action signals such as:
[signal`SourceCustom`:py:func:::read<Vips.Connection.signals.read>] for reading data from a custom source.
[signal`SourceCustom`:py:func:::seek<Vips.Connection.signals.seek>] for seeking within a data stream.
[signal`TargetCustom`:py:func:::write<Vips.Connection.signals.write>] for writing data to a custom target.
Property Details¶
- Vips.Connection.props.descriptor¶
-
File descriptor for read or write