% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zarrs-dispatch.R
\name{compressor_to_preset}
\alias{compressor_to_preset}
\title{Map an R compressor object to a zarrs codec preset string}
\usage{
compressor_to_preset(compressor, compressor_config)
}
\arguments{
\item{compressor}{A codec object or NA.}

\item{compressor_config}{A config list or NA.}
}
\value{
Character scalar.
}
\description{
Returns one of \code{"none"}, \code{"gzip"}, \code{"blosc"},
\code{"zstd"}, or \code{NA_character_} if the compressor is not
recognised (signalling fallback to R-native).
}
\keyword{internal}
