Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/gtk-doc/html/libvips/ drwxr-xr-x | |
| Viewing file: Select action/file-type:
Functions
DescriptionVipsSbuf wraps up a VipsSource and provides a set of calls for text-oriented buffered reading. You can fetch lines of text, skip whitespace, and so on. It is useful for implementing things like CSV readers, for example. Functionsvips_sbuf_new_from_source ()VipsSbuf *
vips_sbuf_new_from_source (
Create a VipsSbuf wrapping a source. vips_sbuf_unbuffer ()void
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. vips_sbuf_getc ()int
vips_sbuf_getc (
Fetch the next character from the source. If you can, use the macro vips_sbuf_ungetc ()void
vips_sbuf_ungetc (
The opposite of unget more than one character is undefined. Unget at the start of the file does nothing. If you can, use the macro VIPS_SBUF_UNGETC()#define VIPS_SBUF_UNGETC( S ) The opposite of unget more than one character is undefined. Unget at the start of the file does nothing. vips_sbuf_require ()int vips_sbuf_require ( Make sure there are at least VIPS_SBUF_REQUIRE()#define VIPS_SBUF_REQUIRE( S, R ) Make sure at least VIPS_SBUF_PEEK()#define VIPS_SBUF_PEEK( S ) ((S)->input_buffer + (S)->read_point) After a successful VIPS_SBUF_FETCH()#define VIPS_SBUF_FETCH( S ) ((S)->input_buffer[(S)->read_point++]) After a successful vips_sbuf_get_line ()const char *
vips_sbuf_get_line (
Fetch the next line of text from Returns NULL on end of file or read error. If the line is longer than some arbitrary (but large) limit, it is
truncated. If you need to be able to read very long lines, use the
slower The return value is owned by vips_sbuf_get_line_copy ()char *
vips_sbuf_get_line_copy (
Fetch the next line of text from The return result must be freed with This is slower than vips_sbuf_get_non_whitespace ()const char *
vips_sbuf_get_non_whitespace (
Fetch the next chunk of non-whitespace text from the source, and null-terminate it. After this, the next getc will be the first char of the next block of whitespace (or EOF). If the first getc is whitespace, stop instantly and return the empty string. If the item is longer than some arbitrary (but large) limit, it is truncated. The return value is owned by vips_sbuf_skip_whitespace ()int
vips_sbuf_skip_whitespace (
After this, the next getc will be the first char of the next block of non-whitespace (or EOF). Also skip comments, ie. from any '#' character to the end of the line. |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0049 ]-- |