Movatterモバイル変換


[0]ホーム

URL:


Class

VipsSbuf

Description[src]

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.

Hierarchy

hierarchythisVipsSbufancestor_0VipsObjectancestor_0--thisancestor_1GObjectancestor_1--ancestor_0

Ancestors

Constructors

vips_sbuf_new_from_source

Create aVipsSbuf wrapping a source.

Instance methods

vips_sbuf_get_line

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).

vips_sbuf_get_line_copy

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).

vips_sbuf_get_non_whitespace

Fetch the next chunk of non-whitespace text from the source, andnull-terminate it.

vips_sbuf_getc

Fetch the next character from the source.

vips_sbuf_require

Make sure there are at leastrequire bytes of readahead available.

vips_sbuf_skip_whitespace

After this, the next getc will be the first char of the next block ofnon-whitespace (orEOF).

vips_sbuf_unbuffer

Discard the input buffer and reset the read point. You must call thisbefore using read or seek on the underlyingVipsSource class.

vips_sbuf_ungetc

The opposite ofvips_sbuf_getc(): undo the previous getc.

Methods inherited fromVipsObject (27)

Please see VipsObject for a full list of methods.

Methods inherited fromGObject (43)

Please see GObject for a full list of methods.

Properties

Vips.Sbuf:input
No description available.

Properties inherited fromVipsObject (2)
Vips.Object:description
No description available.

Vips.Object:nickname
No description available.

Signals

Signals inherited fromVipsObject (4)
VipsObject::close

The ::close signal is emitted once during object close. The objectis dying and may not work.

VipsObject::postbuild

The ::postbuild signal is emitted once just after successful objectconstruction. Return non-zero to cause object construction to fail.

VipsObject::postclose

The ::postclose signal is emitted once after object close. Theobject pointer is still valid, but nothing else.

VipsObject::preclose

The ::preclose signal is emitted once just before object closestarts. The object is still alive.

Signals inherited fromGObject (1)
GObject::notify

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.

Class structure

struct VipsSbufClass {  VipsObjectClass parent_class;  }

No description available.

Class members
parent_class: VipsObjectClass

No description available.


[8]ページ先頭

©2009-2025 Movatter.jp