% Generated by tinyroxygen: do not edit by hand
% Please edit documentation in cpp4r.R
\name{hash}
\alias{hash}
\title{Hash an R Object}
\usage{
hash(x)
}

\arguments{
\item{x}{An R object to hash.}
}

\value{
A 32-character lowercase hex string.
}

\description{
Computes a fast, well-mixed 128-bit (32 hex character) hash of
  an R object, similar to \code{rlang::hash()}. Unlike hashing
  \code{serialize(x, connection = NULL)} (see \code{hash_raw()}), this walks the
  object's type, length, data bytes, and attributes directly, so it never
  allocates a serialized byte buffer. Supports atomic vectors (logical,
  integer, double, character, raw), lists, and their attributes meaning that it
  covers data frames, factors, and nested lists thereof. Other types (e.g.
  closures, environments, S4 objects) are not supported.
}

