Blob

Constructors

this
this(GdaBlob* gdaBlob)

Sets our main struct and passes it to the parent class

Members

Functions

close
int close()

Closes the BLOB. After calling this function, blob should no longer be used.

freeData
void freeData()

Let the provider free any internal data stored in blob. The user is still responsible for deallocating blob itself.

getBlobStruct
GdaBlob* getBlobStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getStruct
void* getStruct()

the main Gtk struct as a void*

lseek
int lseek(int offset, int whence)

Sets the blob read/write position.

open
int open(GdaBlobMode mode)

Opens an existing BLOB. The BLOB must be initialized by gda_connection_create_blob or obtained from a GdaValue.

read
int read(void* buf, int size, int bytesRead)

Reads a chunk of bytes from the BLOB into a user-provided location.

remove
int remove()

Removes the BLOB from the database. After calling this function, blob should no longer be used.

write
int write(void* buf, int size, int bytesWritten)

Writes a chunk of bytes from a user-provided location to the BLOB.

Variables

gdaBlob
GdaBlob* gdaBlob;

the main Gtk struct

Meta