Stream
Object Hierarchy:
Description:
[ CCode ( type_id = "g_mime_stream_get_type ()" ) ]
public abstract class Stream : Object
Abstract I/O stream class.
Content:
Creation methods:
Methods:
- public void @construct (int64 start, int64 end)
Initializes a new stream with bounds start
and end
.
- public virtual int close ()
Closes the stream.
- public virtual bool eos ()
Tests the end-of-stream indicator for this
.
- public virtual int flush ()
Sync's the stream to disk.
- public virtual int64 length ()
Gets the length of the stream.
- public virtual ssize_t read (uint8[] buf)
Attempts to read up to buf.length
bytes from
this into buf
.
- public virtual int reset ()
Resets the stream.
- public virtual int64 seek (int64 offset, SeekWhence whence)
Repositions the offset of the stream this
to the argument offset
according to the directive whence
as follows:
- public void set_bounds (int64 start, int64 end)
Set the bounds on a stream.
- public virtual Stream substream (int64 start, int64 end)
Creates a new substream of this with
bounds start
and end
.
- public virtual int64 tell ()
Gets the current offset within the stream.
- public virtual ssize_t write (uint8[] buf)
Attempts to write up to buf.length
bytes of buf
to this.
- public ssize_t write_string (string str)
Writes string
to this.
- public int64 write_to_stream (Stream dest)
Attempts to write the source stream to the destination stream.
- public int64 writev (StreamIOVector[] vector)
Writes at most vector.length
blocks described by
vector
to this.
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