Libmsi.Record¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
count |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Libmsi.Record(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- get_int(field)¶
- Parameters:
field (
int
) – a field identifier- Returns:
The integer value, or
Libmsi.NULL_INT
if the field is not an integer.- Return type:
Get the integer value of %field. If the field is a string representing an integer, it will be converted to an integer value. Other values and types will return
Libmsi.NULL_INT
.
- get_stream(field)¶
- Parameters:
field (
int
) – a field identifier- Returns:
a new
Gio.InputStream
- Return type:
Get the stream associated with the given record field.
- get_string(field)¶
-
Get a string representation of %field.
- is_null(field)¶
- load_stream(field, filename)¶
- Parameters:
- Returns:
True
on success.- Return type:
Load the file content as a stream in field.
- set_int(field, val)¶
- Parameters:
- Returns:
True
on success.- Return type:
Set the %field to the integer value %val.
- set_stream(field, input, count, cancellable)¶
- Parameters:
field (
int
) – a field identifierinput (
Gio.InputStream
) – aGio.InputStream
count (
int
) – the number of bytes to read from inputcancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object,None
to ignore
- Raises:
- Returns:
True
on success- Return type:
Set the stream content from input stream.
Property Details¶
- Libmsi.Record.props.count¶
- Name:
count
- Type:
- Default Value:
0
- Flags:
count