INNER CODE UNIT · Go

offset

256dpi/lungo · bucket.go:1385

	offset := position - (num * s.file.ChunkSize)

	// set buffer
	s.buffer = chunk.Data[offset:]

	return nil
}

func (s *DownloadStream) next() error {
	// no cursor means we are past the end
	if s.cursor == nil {
		return io.EOF
	}

	// advance cursor
	if !s.cursor.Next(s.context) {
		if err := s.cursor.Err(); err != nil {
			return err

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…