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