Gda.Blob¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
data |
r/w |
data buffer, as a |
|
op |
r/w |
a pointer to a #GdaBlopOp, or |
Methods¶
class |
|
class |
|
|
|
|
Details¶
- class Gda.Blob¶
Represents some binary data, accessed through a
Gda.BlobOp
object. op is generally set up by database providers when giving access to an existing BLOB in a database, but can be modified if needed usingGda.Blob.set_op
().- classmethod copy(boxed)¶
- Parameters:
- Returns:
a newly allocated
Gda.Blob
which contains a copy of information in boxed.Free-function:
Gda.Blob.free
- Return type:
Creates a new
Gda.Blob
structure from an existing one.
- set_op(op)¶
- Parameters:
op (
Gda.BlobOp
orNone
) – aGda.BlobOp
object, orNone
correctly assigns op to self
- to_string(maxlen)¶
- Parameters:
maxlen (
int
) – a maximum len used to truncate, or 0 for no maximum length- Returns:
a new string from self
- Return type:
Converts all the non printable characters of blob->data into the \xxx representation where xxx is the octal representation of the byte, and the ‘\’ (backslash) character is converted to “\\”.