[ox] Overhaul serialization/model system and add ModelValue/ModelObject/ModelUnion variant system
This commit is contained in:
3
deps/ox/src/ox/claw/write.hpp
vendored
3
deps/ox/src/ox/claw/write.hpp
vendored
@ -82,8 +82,7 @@ Result<String> writeClawHeader(T *t, ClawFormat fmt) noexcept {
|
||||
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
Result<Buffer> writeClaw(T *t, ClawFormat fmt = ClawFormat::Metal) {
|
||||
Result<Buffer> writeClaw(auto *t, ClawFormat fmt = ClawFormat::Metal) {
|
||||
oxRequire(header, detail::writeClawHeader(t, fmt));
|
||||
oxRequire(data, fmt == ClawFormat::Metal ? writeMC(t) : writeOC(t));
|
||||
Buffer out(header.len() + data.size());
|
||||
|
Reference in New Issue
Block a user