diff --git a/deps/ox/src/ox/claw/read.hpp b/deps/ox/src/ox/claw/read.hpp index 8a016c15..b5f7fa71 100644 --- a/deps/ox/src/ox/claw/read.hpp +++ b/deps/ox/src/ox/claw/read.hpp @@ -75,6 +75,11 @@ Result readClaw(const char *buff, std::size_t buffLen) { return val; } +template +Error readClaw(const Buffer &buff, T *val) { + return readClaw(buff.data(), buff.size(), val); +} + template Result readClaw(const Buffer &buff) { return readClaw(buff.data(), buff.size());