Gda.BlobOp¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
object |
r |
Class Details¶
- class Gda.BlobOp(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- get_length()¶
- Returns:
the length of the blob in bytes. In case of error, -1 is returned and the provider should have added an error (a
Gda.ConnectionEvent
) to the connection.- Return type:
- read(blob, offset, size)¶
- Parameters:
- Returns:
the number of bytes actually read. In case of error, -1 is returned and the provider should have added an error to the connection.
- Return type:
Reads a chunk of bytes from the BLOB accessible through self into blob.
- read_all(blob)¶
- Parameters:
- Returns:
True
if blob->data contains the whole BLOB manipulated by self- Return type:
Reads the whole contents of the blob manipulated by self into blob
- write(blob, offset)¶
- Parameters:
- Returns:
the number of bytes written. In case of error, -1 is returned and the provider should have added an error to the connection.
- Return type:
Writes a chunk of bytes from a blob to the BLOB accessible through self, blob is unchanged after this call.
If blob has an associated
Gda.BlobOp
(ie. if blob->op is notNone
) then the data to be written using self is the data fetched using blob->op.
- write_all(blob)¶
- Parameters:
blob (
Gda.Blob
) – aGda.Blob
which contains the data to write- Returns:
True
on success- Return type:
Writes the whole contents of blob into the blob manipulated by self. If necessary the resulting blob is truncated from its previous length.
- do_get_length() virtual¶
- Returns:
the length of the blob in bytes. In case of error, -1 is returned and the provider should have added an error (a
Gda.ConnectionEvent
) to the connection.- Return type:
- do_read(blob, offset, size) virtual¶
- Parameters:
- Returns:
the number of bytes actually read. In case of error, -1 is returned and the provider should have added an error to the connection.
- Return type:
Reads a chunk of bytes from the BLOB accessible through op into blob.
- do_write(blob, offset) virtual¶
- Parameters:
- Returns:
the number of bytes written. In case of error, -1 is returned and the provider should have added an error to the connection.
- Return type:
Writes a chunk of bytes from a blob to the BLOB accessible through op, blob is unchanged after this call.
If blob has an associated
Gda.BlobOp
(ie. if blob->op is notNone
) then the data to be written using op is the data fetched using blob->op.