1
\alias{gSeekableTruncate}
2
\name{gSeekableTruncate}
3
\title{gSeekableTruncate}
4
\description{Truncates a stream with a given \verb{offset}. }
5
\usage{gSeekableTruncate(object, offset, cancellable = NULL, .errwarn = TRUE)}
7
\item{\verb{object}}{a \code{\link{GSeekable}}.}
8
\item{\verb{offset}}{a \verb{numeric}.}
9
\item{\verb{cancellable}}{optional \code{\link{GCancellable}} object, \code{NULL} to ignore. }
10
\item{.errwarn}{Whether to issue a warning on error or fail silently}
12
\details{If \code{cancellable} is not \code{NULL}, then the operation can be cancelled by
13
triggering the cancellable object from another thread. If the operation
14
was cancelled, the error \code{G_IO_ERROR_CANCELLED} will be returned. If an
15
operation was partially finished when the operation was cancelled the
16
partial result will be returned, without an error.}
18
A list containing the following elements:
19
\item{retval}{[logical] \code{TRUE} if successful. If an error
20
has occurred, this function will return \code{FALSE} and set \code{error}
21
appropriately if present. }
22
\item{\verb{error}}{a \code{\link{GError}} location to store the error occuring, or \code{NULL} to
25
\author{Derived by RGtkGen from GTK+ documentation}