// core/util/file_bytes — the ONE whole-file byte loader. Pure standard library —
// NO REAPER, NO SWELL, NO VST3 — but it does blocking file I/O: NEVER call it on
// the audio thread. Linked by both artifacts.

#pragma once

#include <cstdint>
#include <string>
#include <vector>

namespace reasampler::util {

// Reads the whole file at `path` into a byte buffer. Empty on ANY failure —
// unopenable, empty file, or short read — so the caller has exactly one
// "nothing to work with" branch.
std::vector<std::uint8_t> readFileBytes(const std::string& path);

}  // namespace reasampler::util
