func ReaderAtForReader(reader io.Reader) (io.ReaderAt, error) {
	if readerAt, ok := reader.(io.ReaderAt); ok {
		return readerAt, nil
	}
	data, err := io.ReadAll(reader)
	if err != nil {
		return nil, err
	}
	return bytes.NewReader(data), nil
}
// ReaderAtForReader converts an io.Reader to an io.ReaderAt.
ReaderAtForReader converts an io.Reader to an io.ReaderAt.
// ReaderAtForReader converts an io . Reader to an io . ReaderAt .
func ReaderAtForReader(reader io.Reader) (io.ReaderAt, error) {
	if readerAt, ok := reader.(io.ReaderAt); ok {
		return readerAt, nil
	}
	data, err := io.ReadAll(reader)
	if err != nil {
		return nil, err
	}
	return bytes.NewReader(data), nil
}
func ReaderAtForReader ( reader io . Reader ) ( io . ReaderAt , error ) { if readerAt , ok := reader . ( io . ReaderAt ) ; ok { return readerAt , nil } data , err := io . ReadAll ( reader ) if err != nil { return nil , err } return bytes . NewReader ( data ) , nil }
ReaderAtForReader converts an io.Reader to an io.ReaderAt.
ReaderAtForReader converts an io . Reader to an io . ReaderAt .