INNER CODE UNIT · Go
func
256dpi/lungo · bucket.go:1131
func (s *DownloadStream) GetFile() *BucketFile {
return s.file
}
// Skip will advance the read head by the specified amount of bytes.
func (s *DownloadStream) Skip(skip int64) (int64, error) {
return s.Seek(skip, io.SeekCurrent)
}
// Seek will reposition the read head using the specified values. A resulting
// position below zero will yield and error while a position beyond the file
// length will yield EOF on subsequent reads.
func (s *DownloadStream) Seek(offset int64, whence int) (int64, error) {
// acquire mutex
s.mutex.Lock()
defer s.mutex.Unlock()
// check if closed