INNER CODE UNIT · Go
position
256dpi/lungo · bucket.go:1165
position = s.position + int(offset)
case io.SeekEnd:
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