- public Future aio_read (AioContext? aio_context, int fd, out unowned uint8[] buffer, int64 offset)
An asynchronous `pread()` wrapper.
- public Future aio_write (AioContext? aio_context, int fd, uint8[] buffer, int64 offset)
An asynchronous `pwrite()` wrapper.
- public Future async_initable_init (AsyncInitable initable, int io_priority)
A helper for [method@Gio.
- public Future bus_get (BusType bus_type)
Wrapper for [func@Gio.
- public void bus_own_name_on_connection (DBusConnection connection, string name, BusNameOwnerFlags flags, out Future out_name_acquired_future, out Future out_name_lost_future)
Wrapper for [func@Gio.
- public Future data_input_stream_read_line (DataInputStream stream, int io_priority)
Reads a line from the data input stream.
- public Future dbus_connection_call (DBusConnection connection, string? bus_name, string object_path, string interface_name, string method_name, Variant? parameters, VariantType? reply_type, DBusCallFlags flags, int timeout_msec)
Wrapper for [method@Gio.
- public Future dbus_connection_call_with_unix_fd_list (DBusConnection connection, string? bus_name, string object_path, string interface_name, string method_name, Variant? parameters, VariantType? reply_type, DBusCallFlags flags, int timeout_msec, UnixFDList? fd_list)
Wrapper for [method@Gio.
- public Future dbus_connection_close (DBusConnection connection)
Asynchronously closes a connection.
- public Future dbus_connection_send_message_with_reply (DBusConnection connection, DBusMessage message, DBusSendMessageFlags flags, int timeout_msec, out uint32 out_serial)
Wrapper for [method@Gio.
- public Future fd_watch (int fd, int events)
Creates a new GSource that will fire when events is
satisfied.
- public Future file_copy (File source, File destination, FileCopyFlags flags, int io_priority)
Asynchronously copies a file and returns a [class@Dex.
- public Future file_create (File file, FileCreateFlags flags, int io_priority)
Wraps [method@Gio.
- public Future file_delete (File file, int io_priority)
Asynchronously deletes a file and returns a [class@Dex.
- public Future file_enumerate_children (File file, string attributes, FileQueryInfoFlags flags, int io_priority)
- public Future file_enumerator_next_files (FileEnumerator file_enumerator, int num_files, int io_priority)
Wraps [method@Gio.
- public Future file_load_contents_bytes (File file)
- public Future file_make_directory (File file, int io_priority)
Asynchronously creates a directory and returns [class@Dex.
- public Future file_make_directory_with_parents (File file)
Creates a directory at file.
- public Future file_move (File source, File destination, FileCopyFlags flags, int io_priority, owned FileProgressCallback progress_callback)
- public Future file_query_exists (File file)
Queries to see if file exists asynchronously.
- public Future file_query_file_type (File file, FileQueryInfoFlags flags, int io_priority)
- public Future file_query_info (File file, string attributes, FileQueryInfoFlags flags, int io_priority)
- public Future file_read (File file, int io_priority)
Asynchronously opens a file for reading.
- public Future file_replace (File file, string? etag, bool make_backup, FileCreateFlags flags, int io_priority)
Opens a stream that will replace file on disk when the
input stream is closed.
- public Future file_replace_contents_bytes (File file, Bytes contents, string? etag, bool make_backup, FileCreateFlags flags)
Wraps [method@Gio.
- public Future file_set_attributes (File file, FileInfo file_info, FileQueryInfoFlags flags, int io_priority)
- public Future find_program_in_path (string program)
Locates the first executable named program in the user’s path.
- public int get_major_version ()
Gets the major version number equivalent to `DEX_MAJOR_VERSION` at
compile time of libdex.
- public int get_micro_version ()
Gets the micro version number equivalent to `DEX_MICRO_VERSION` at
compile time of libdex.
- public size_t get_min_stack_size ()
- public int get_minor_version ()
Gets the minor version number equivalent to `DEX_MINOR_VERSION` at
compile time of libdex.
- public size_t get_page_size ()
- public void init ()
- public Future input_stream_close (InputStream self, int io_priority)
- public Future input_stream_read (InputStream self, out unowned uint8[] buffer, int io_priority)
Reads buffer.length bytes from an input stream into a
pre-allocated buffer.
- public Future input_stream_read_bytes (InputStream stream, size_t count, int io_priority)
Reads count bytes from the stream.
- public Future input_stream_skip (InputStream self, size_t count, int io_priority)
- public Future io_stream_close (IOStream io_stream, int io_priority)
- public Future mkdir_with_parents (string path, int mode)
Similar to [func@GLib.
- public Future output_stream_close (OutputStream self, int io_priority)
- public Future output_stream_splice (OutputStream output, InputStream input, OutputStreamSpliceFlags flags, int io_priority)
- public Future output_stream_write (OutputStream self, uint8[] buffer, int io_priority)
- public Future output_stream_write_bytes (OutputStream stream, Bytes bytes, int io_priority)
Writes bytes to stream.
- public Future resolver_lookup_by_name (Resolver resolver, string address)
- public Future socket_client_connect (SocketClient socket_client, SocketConnectable socket_connectable)
- public Future socket_listener_accept (SocketListener listener)
- public Future subprocess_wait_check (Subprocess subprocess)
Creates a future that awaits for subprocess to complete
using [method@Gio.
- public Future thread_spawn (string? thread_name, owned ThreadFunc thread_func)
Spawns a new thread named thread_name running
thread_func with user_data passed to it.
- public bool thread_wait_for (owned Future future) throws Error
Use this when running on a thread spawned with `dex_thread_spawn()`
and you need to block the thread until future has resolved or rejected.
- public Future unlink (string path)
This runs [func@GLib.
- public Object? value_dup_object (Value value)
Retrieves the `DexObject` stored inside the given `value`.
- public unowned Object? value_get_object (Value value)
Retrieves the `DexObject` stored inside the given `value`.
- public void value_set_object (Value value, Object? object)
Stores the given `DexObject` inside `value`.
- public void value_take_object (Value value, owned Object? object)
Stores the given `DexObject` inside `value`.