From 79549aab5b9ca8f0cad4f00bc8ad68b7091ab65f Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 5 Jun 2026 10:12:56 +0200 Subject: magic: implement buffer processing support --- cabinet/magic.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cabinet/magic.hpp') diff --git a/cabinet/magic.hpp b/cabinet/magic.hpp index 9e078de..68177f9 100644 --- a/cabinet/magic.hpp +++ b/cabinet/magic.hpp @@ -3,8 +3,10 @@ #include +#include #include #include +#include #include #include #include @@ -56,6 +58,7 @@ namespace cab auto process(std::filesystem::path path) -> std::expected; auto process(int file_descriptor) -> std::expected; + auto process(std::span data) -> std::expected; private: auto handle_result(char const * result) -> std::expected; -- cgit v1.2.3