INNER CODE UNIT · Go
position
256dpi/lungo · bucket.go:1167
position = s.file.Length + int(offset)
}
// seek to position
err = s.seek(position)
if err != nil {
return 0, err
}
// update position
s.position = position
return int64(s.position), nil
}
// Read will read bytes into the specified buffer from the current position of
// the read head.
func (s *DownloadStream) Read(buf []uint8) (int, error) {