Top | ![]() |
![]() |
![]() |
![]() |
GObject ╰── GsfOutput ├── GsfOutfile ├── GsfOutputBzip ├── GsfOutputCsv ├── GsfOutputGZip ├── GsfOutputIconv ├── GsfOutputIOChannel ├── GsfOutputMemory ╰── GsfOutputStdio
gsf_off_t
gsf_output_size (GsfOutput *output
);
Determine the size of the output stream output
.
gsf_off_t
gsf_output_tell (GsfOutput *output
);
Tell the current position in output
, similar to
gboolean gsf_output_seek (GsfOutput *output
,gsf_off_t offset
,GSeekType whence
);
Reposition in output stream output
. whence
specifies what the offset is
relative to: the beginning of the stream (G_SEEK_SET
), current position in
the stream (G_SEEK_CUR
) or the end of the stream (G_SEEK_END
).
This function is similar to
gboolean gsf_output_write (GsfOutput *output
,size_t num_bytes
,guint8 const *data
);
Write num_bytes
of data
to output
.
gboolean gsf_output_puts (GsfOutput *output
,char const *line
);
Like fputs, this assumes that the line already ends with a newline
gboolean gsf_output_printf (GsfOutput *output
,char const *format
,...
);
Output Varargs
to output
using the format string format
, similar to
gsf_off_t gsf_output_vprintf (GsfOutput *output
,char const *format
,va_list args
);
Output args
to output
using the format string format
, similar to
char const *
gsf_output_name (GsfOutput const *output
);
Give the name of output
.
gboolean gsf_output_set_name_from_filename (GsfOutput *output
,char const *filename
);
gboolean gsf_output_set_error (GsfOutput *output
,gint code
,char const *format
,...
);
typedef struct _GsfOutput GsfOutput;
Class representing an output stream, counterpart to GsfInput.
“is-closed”
property“is-closed” gboolean
Whether the Output is Closed.
Flags: Read
Default value: FALSE
“position”
property “position” gint64
The Output's Current Position.
Flags: Read
Allowed values: >= 0
Default value: 0