% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{maxent_extract_occurrence_from_callback}
\alias{maxent_extract_occurrence_from_callback}
\title{Extract occurrence environmental values from a callback stream}
\usage{
maxent_extract_occurrence_from_callback(
  num_points,
  num_layers,
  occurrence_indices,
  next_tile_fn,
  reset_fn,
  preserved_rast = NULL
)
}
\arguments{
\item{num_points}{Integer; total finite background rows in stream.}

\item{num_layers}{Integer; number of environmental variables per row.}

\item{occurrence_indices}{Integer vector of 0-based finite-stream indices.}

\item{next_tile_fn}{R function returning the next tile or NULL/0-row matrix.}

\item{reset_fn}{R function (no args) that rewinds the underlying stream.}

\item{preserved_rast}{Optional SpatRaster object to preserve during read.}
}
\value{
Numeric matrix with one row per requested occurrence index.
}
\description{
Drains a callback background stream once and returns the rows at the
requested 0-based finite-stream indices.
}
\keyword{internal}
