![]() |
![]() |
![]() |
GNOME Data Access 4 manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
#include <libgda/gda-blob-op.h> GdaBlobOp; glong gda_blob_op_get_length (GdaBlobOp *op
); glong gda_blob_op_read (GdaBlobOp *op
,GdaBlob *blob
,glong offset
,glong size
); gboolean gda_blob_op_read_all (GdaBlobOp *op
,GdaBlob *blob
); glong gda_blob_op_write (GdaBlobOp *op
,GdaBlob *blob
,glong offset
); gboolean gda_blob_op_write_all (GdaBlobOp *op
,GdaBlob *blob
);
glong gda_blob_op_get_length (GdaBlobOp *op
);
|
an existing GdaBlobOp |
Returns : |
the length of the blob in bytes. In case of error, -1 is returned and the provider should have added an error (a GdaConnectionEvent) to the connection. |
glong gda_blob_op_read (GdaBlobOp *op
,GdaBlob *blob
,glong offset
,glong size
);
Reads a chunk of bytes from the BLOB accessible through op
into blob
.
gboolean gda_blob_op_read_all (GdaBlobOp *op
,GdaBlob *blob
);
Reads the whole contents of the blob manipulated by op
into blob
glong gda_blob_op_write (GdaBlobOp *op
,GdaBlob *blob
,glong 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 GdaBlobOp (ie. if blob->op
is not NULL
) then the data to be written
using op
is the data fetched using blob->op
.