// SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: Copyright (C) 2023–2025 Tsukasa OI <floss_ssdeep@irq.a4lg.com>.
//! Easy generator functions.
use crate;
use crateRawFuzzyHash;
/// Generates a fuzzy hash from a given buffer.
///
/// # Example
///
/// ```
/// // Requires either the "alloc" feature or std environment
/// // on your crate to use `to_string()` method (default enabled).
/// assert_eq!(
/// ssdeep::hash_buf(b"Hello, World!\n").unwrap().to_string(),
/// "3:aaX8v:aV"
/// );
/// ```