Class
VipsSbuf
since: 8.0
Description [src]
class Vips.Sbuf : Vips.Object
{
/* No available fields */
}
A VipsSbuf provides a buffered reading interface for a VipsSource.
You can fetch lines of text, skip whitespace, and so on.
It is useful for implementing things like CSV readers, for example.
Available since: 8.0
Instance methods
vips_sbuf_get_line
Fetch the next line of text from sbuf and return it. The end of
line character (or characters, for DOS files) are removed, and the string
is terminated with a null (\0 character).
since: 8.0
vips_sbuf_get_line_copy
Fetch the next line of text from sbuf and return it. The end of
line character (or characters, for DOS files) are removed, and the string
is terminated with a null (\0 character).
since: 8.0
vips_sbuf_get_non_whitespace
Fetch the next chunk of non-whitespace text from the source, and null-terminate it.
since: 8.0
vips_sbuf_skip_whitespace
After this, the next getc will be the first char of the next block of non-whitespace (or EOF).
since: 8.0
vips_sbuf_unbuffer
Discard the input buffer and reset the read point. You must call this
before using read or seek on the underlying VipsSource class.
since: 8.0
Methods inherited from VipsObject (27)
Please see VipsObject for a full list of methods.
Properties
Properties inherited from VipsObject (2)
Vips.Object:description
since: 8.0
Vips.Object:nickname
since: 8.0
Signals
Signals inherited from VipsObject (4)
VipsObject::close
The ::close signal is emitted once during object close. The object is dying and may not work.
since: 8.0
VipsObject::postbuild
The ::postbuild signal is emitted once just after successful object construction. Return non-zero to cause object construction to fail.
since: 8.0
VipsObject::postclose
The ::postclose signal is emitted once after object close. The object pointer is still valid, but nothing else.
since: 8.0
VipsObject::preclose
The ::preclose signal is emitted once just before object close starts. The object is still alive.
since: 8.0
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
since: 2.0