Jcat.Blob – jcat Reference Manual
Packages
jcat
Jcat
Blob
kind_from_string
kind_to_filename_ext
kind_to_string
Blob
Blob.full
Blob.utf8
get_appstream_id
get_data
get_data_as_string
get_kind
get_target
get_timestamp
set_appstream_id
set_target
set_timestamp
to_string
Blob
Object Hierarchy:
Description:
[
CCode
( type_id =
"jcat_blob_get_type ()"
) ]
public
class
Blob
:
Object
Namespace:
Jcat
Package:
jcat
Content:
Static methods:
public
static
BlobKind
kind_from_string
(
string
kind)
Converts the string to an enumerated kind.
public
static
unowned
string
kind_to_filename_ext
(
BlobKind
kind)
Converts the enumerated kind to the normal file extension.
public
static
unowned
string
kind_to_string
(
BlobKind
kind)
Converts the enumerated kind to a string.
Creation methods:
public
Blob
(
BlobKind
kind,
Bytes
data)
Creates a new blob.
public
Blob.full
(
BlobKind
kind,
Bytes
data,
BlobFlags
flags)
Creates a new blob.
public
Blob.utf8
(
BlobKind
kind,
string
data)
Creates a new ASCII blob.
Methods:
public
unowned
string
get_appstream_id
()
Gets the optional AppStream ID for the blob.
public
unowned
Bytes
get_data
()
Gets the data stored in the blob, typically in binary (unprintable) form.
public
string
get_data_as_string
()
Gets the data stored in the blob, in human readable form.
public
BlobKind
get_kind
()
gets the blob kind
public
BlobKind
get_target
()
Gets the blob target.
public
int64
get_timestamp
()
Gets the creation timestamp for the blob.
public
void
set_appstream_id
(
string
? appstream_id)
Sets an optional AppStream ID on the blob.
public
void
set_target
(
BlobKind
target)
Sets the blob target.
public
void
set_timestamp
(
int64
timestamp)
Sets the creation timestamp for the blob.
public
string
to_string
()
Converts the
Blob
to a string.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref