Valadoc
|
Vala
|
Tutorial
|
API-References
|
Markup
Packages
gio-2.0
GLib
Seekable
can_seek
can_truncate
seek
tell
truncate
Seekable
Object Hierarchy:
Description:
public
interface
Seekable
:
Object
Provides an interface for implementing seekable functionality on I/O Streams.
All known implementing classes:
FileIOStream
FileInputStream
FileOutputStream
MemoryInputStream
MemoryOutputStream
Namespace:
GLib
Package:
gio-2.0
Content:
Methods:
public
abstract
bool
can_seek
()
Tests if the stream supports the
Seekable
.
public
abstract
bool
can_truncate
()
Tests if the stream can be truncated.
public
abstract
bool
seek
(
int64
offset,
SeekType
type,
Cancellable
? cancellable =
null
)
throws
Error
Seeks in the stream by the given
offset
, modified by
type
.
public
abstract
int64
tell
()
Tells the current position within the stream.
public
abstract
bool
truncate
(
int64
offset,
Cancellable
? cancellable =
null
)
throws
Error
Truncates a stream with a given
offset
.