| libgdamm
    4.99.8
    | 
Blobs handling. More...


| Public Member Functions | |
| virtual | ~BlobOp () | 
| GdaBlobOp* | gobj () | 
| Provides access to the underlying C GObject.  More... | |
| const GdaBlobOp* | gobj () const | 
| Provides access to the underlying C GObject.  More... | |
| GdaBlobOp* | gobj_copy () | 
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.  More... | |
| long | get_length () const | 
| long | read (Blob& blob, long offset, long size) | 
| Reads a chunk of bytes from the BLOB accessible through op into blob.  More... | |
| long | write (Blob& blob, long offset) | 
| Writes a chunk of bytes from a blob to the BLOB accessible through op, blob is unchanged after this call.  More... | |
| bool | read_all (Blob& blob) | 
| Reads the whole contents of the blob manipulated by op into blob.  More... | |
| bool | write_all (Blob& blob) | 
| Writes the whole contents of blob into the blob manipulated by op.  More... | |
| Static Public Member Functions | |
| static GType | get_type () | 
| Get the GType for this class, for use with the underlying GObject type system.  More... | |
| static Glib::RefPtr< BlobOp > | create () | 
| Protected Member Functions | |
| BlobOp () | |
| Related Functions | |
| (Note that these are not member functions.) | |
| Glib::RefPtr< Gnome::Gda::BlobOp > | wrap (GdaBlobOp* object, bool take_copy=false) | 
| A Glib::wrap() method for this object.  More... | |
Blobs handling.
This object is a base class for individual database providers which support BLOB types. It supports operations to read and write data in a BLOB.
| 
 | virtual | 
| 
 | protected | 
| 
 | static | 
| long Gnome::Gda::BlobOp::get_length | ( | ) | const | 
| 
 | static | 
Get the GType for this class, for use with the underlying GObject type system.
| 
 | inline | 
Provides access to the underlying C GObject.
| 
 | inline | 
Provides access to the underlying C GObject.
| GdaBlobOp* Gnome::Gda::BlobOp::gobj_copy | ( | ) | 
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
| long Gnome::Gda::BlobOp::read | ( | Blob& | blob, | 
| long | offset, | ||
| long | size | ||
| ) | 
Reads a chunk of bytes from the BLOB accessible through op into blob.
| blob | A Gda::Blob to read data to. | 
| offset | Offset to read from the start of the blob (starts at 0). | 
| size | Maximum number of bytes to read. | 
| bool Gnome::Gda::BlobOp::read_all | ( | Blob& | blob | ) | 
Reads the whole contents of the blob manipulated by op into blob.
| blob | A Gda::Blob to read data to. | 
true if blob->data contains the whole BLOB manipulated by op. | long Gnome::Gda::BlobOp::write | ( | Blob& | blob, | 
| long | offset | ||
| ) | 
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 not 0) then the data to be written using op is the data fetched using blob->op. 
| blob | A Gda::Blob which contains the data to write. | 
| offset | Offset to write from the start of the blob (starts at 0). | 
| bool Gnome::Gda::BlobOp::write_all | ( | Blob& | blob | ) | 
Writes the whole contents of blob into the blob manipulated by op.
If necessary the resulting blob is truncated from its previous length.
| blob | A Gda::Blob which contains the data to write. | 
true on success. | 
 | related | 
A Glib::wrap() method for this object.
| object | The C instance. | 
| take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. | 
 1.8.7
 1.8.7