class Vips.Sbuf : Vips.Object{ /* No available fields */}
AVipsSbuf
provides a buffered reading interface for aVipsSource
.
You can fetch lines of text, skip whitespace, and so on.
It is useful for implementing things likeCSV readers, for example.
Fetch the next line of text fromsbuf
and return it. The end ofline character (or characters, forDOS files) are removed, and the stringis terminated with a null (\0
character).
Fetch the next line of text fromsbuf
and return it. The end ofline character (or characters, forDOS files) are removed, and the stringis terminated with a null (\0
character).
Fetch the next chunk of non-whitespace text from the source, andnull-terminate it.
After this, the next getc will be the first char of the next block ofnon-whitespace (orEOF).
Discard the input buffer and reset the read point. You must call thisbefore using read or seek on the underlyingVipsSource
class.
Please see VipsObject for a full list of methods.
The ::close signal is emitted once during object close. The objectis dying and may not work.
The ::postbuild signal is emitted once just after successful objectconstruction. Return non-zero to cause object construction to fail.
The ::postclose signal is emitted once after object close. Theobject pointer is still valid, but nothing else.
The ::preclose signal is emitted once just before object closestarts. The object is still alive.
The notify signal is emitted on an object when one of its properties hasits value set through g_object_set_property(), g_object_set(), et al.