gio.Seekable — Stream seeking interface.
| class gio.Seekable(gobject.GInterface): | 
            gio.Seekable is implemented by
            gio.FileOutputStream,
            gio.MemoryInputStream,
            gio.FileInputStream and
            gio.MemoryOutputStream.
        
            gio.Seekable
            is implemented by streams (implementations of 
            gio.InputStream or
            gio.OutputStream)
            that support seeking.
        
    def tell()| Returns : | the offset from the beginning of the buffer | 
Tells the current position within the stream.
    def can_seek()| Returns : | Trueif thisgio.Seekablecan be seeked with
                    theseek() method,Falseif not. | 
                The can_seek() method checks if the
                seek()
                can be used on this gio.Seekable.
            
    def seek(offset, type=0, cancellable=None)| 
 | the offset that is added to the position determined by the typeparameter. | 
| 
 | 0=current position, 1=start of the file, 2=end of the file. | 
| 
 | a gio.CancellableorNone. | 
| Returns : | Trueon successful seek,Falseotherwise. | 
                Seeks in the stream by the given offset, modified by type.
            
                If cancellable is not None, then the
                operation can be cancelled by triggering the cancellable object from another thread.
            
    def can_truncate()| Returns : | Trueif thisgio.Seekablecan be truncated with
                    thetruncate() method,Falseif not. | 
                The can_truncate() method checks if the
                truncate()
                can be used on this gio.Seekable.
            
    def truncate(offset, cancellable=None)| 
 | the offset at which the stream should be truncated | 
| 
 | a gio.CancellableorNone. | 
| Returns : | Trueif successful,Falseotherwise. | 
                Truncates a stream with a given offset.
            
                If cancellable is not None, then the
                operation can be cancelled by triggering the cancellable object from another thread.
            
If an operation was partially finished when the operation was cancelled the partial result will be returned, without an error.