Libinsane.ScanSession¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Libinsane.ScanSession(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- cancel()¶
- get_scan_parameters()¶
- Raises:
- Returns:
item scan parameters.
- Return type:
- read(buffer)¶
- Parameters:
buffer (
bytes
) – buffer to read data- Raises:
- Returns:
Number of bytes read, or -1 on error
- Return type:
You must call
Libinsane.ScanSession.end_of_feed
() andLibinsane.ScanSession.end_of_page
() after each call to this function before calling it again.
- read_bytes(lng)¶
- Parameters:
lng (
int
) – number of bytes wanted- Raises:
- Returns:
a new
GLib.Bytes
, orNone
if an error occured- Return type: